Skip to content

Commit d3602b9

Browse files
authored
refactor: use github actions instead of circle (#54)
* refactor: use github actions instead of circle * fix: only check outdated build on node 12 * refactor: replace paths in tests with join for windows * refactor: change expo binary tests when logging in * refactor: replace paths in tests with join for windows * chore: only support current and future lts in ci * chore: remove circle ci configuration * fix: remove windows from up to date check
1 parent 6ac67f0 commit d3602b9

8 files changed

Lines changed: 2081 additions & 550 deletions

File tree

.circleci/config.yml

Lines changed: 0 additions & 51 deletions
This file was deleted.

.github/workflows/ci.yml

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
---
2+
name: CI
3+
on:
4+
push:
5+
branches: [master]
6+
pull_request:
7+
types: [opened, synchronize]
8+
jobs:
9+
build:
10+
name: Test and build
11+
runs-on: ${{ matrix.os }}
12+
strategy:
13+
matrix:
14+
node: [12, 14]
15+
os:
16+
- macos-latest
17+
- ubuntu-latest
18+
- windows-latest
19+
include:
20+
- node: 12
21+
os: macos-latest
22+
checkUpToDate: true
23+
- node: 12
24+
os: ubuntu-latest
25+
checkUpToDate: true
26+
steps:
27+
- name: Setup repo
28+
uses: actions/checkout@v2
29+
- name: Setup node
30+
uses: actions/setup-node@v1
31+
with:
32+
node-version: ${{ matrix.node }}
33+
- name: Find cache
34+
id: yarn-cache-dir-path
35+
run: echo "::set-output name=dir::$(yarn cache dir)"
36+
- name: Restore cache
37+
uses: actions/cache@v2
38+
with:
39+
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
40+
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
41+
restore-keys: |
42+
${{ runner.os }}-yarn-
43+
- name: Install dependencies
44+
run: yarn install --frozen-lockfile --check-files
45+
- name: Lint package
46+
run: yarn lint
47+
- name: Test package
48+
run: yarn test
49+
- name: Build clean
50+
run: yarn clean
51+
- name: Build package
52+
run: yarn build
53+
- name: Build up-to-date
54+
if: ${{ matrix.checkUpToDate }}
55+
run: git diff --stat --exit-code build

0 commit comments

Comments
 (0)