-
Notifications
You must be signed in to change notification settings - Fork 77
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
- Loading branch information
Showing
8 changed files
with
2,081 additions
and
550 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
--- | ||
name: CI | ||
on: | ||
push: | ||
branches: [master] | ||
pull_request: | ||
types: [opened, synchronize] | ||
jobs: | ||
build: | ||
name: Test and build | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
node: [12, 14] | ||
os: | ||
- macos-latest | ||
- ubuntu-latest | ||
- windows-latest | ||
include: | ||
- node: 12 | ||
os: macos-latest | ||
checkUpToDate: true | ||
- node: 12 | ||
os: ubuntu-latest | ||
checkUpToDate: true | ||
steps: | ||
- name: Setup repo | ||
uses: actions/checkout@v2 | ||
- name: Setup node | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: ${{ matrix.node }} | ||
- name: Find cache | ||
id: yarn-cache-dir-path | ||
run: echo "::set-output name=dir::$(yarn cache dir)" | ||
- name: Restore cache | ||
uses: actions/cache@v2 | ||
with: | ||
path: ${{ steps.yarn-cache-dir-path.outputs.dir }} | ||
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} | ||
restore-keys: | | ||
${{ runner.os }}-yarn- | ||
- name: Install dependencies | ||
run: yarn install --frozen-lockfile --check-files | ||
- name: Lint package | ||
run: yarn lint | ||
- name: Test package | ||
run: yarn test | ||
- name: Build clean | ||
run: yarn clean | ||
- name: Build package | ||
run: yarn build | ||
- name: Build up-to-date | ||
if: ${{ matrix.checkUpToDate }} | ||
run: git diff --stat --exit-code build |
Oops, something went wrong.