-
Notifications
You must be signed in to change notification settings - Fork 229
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: fix the lint, and fail faster for lint
- Loading branch information
1 parent
84752e2
commit 19606a6
Showing
3 changed files
with
41 additions
and
5 deletions.
There are no files selected for viewing
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,39 @@ | ||
name: Lint check | ||
|
||
# run CI on pushes to master, and on all PRs (even the ones that target other | ||
# branches) | ||
|
||
on: | ||
push: | ||
branches: [master] | ||
pull_request: | ||
|
||
jobs: | ||
lint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- uses: actions/setup-node@v1 | ||
with: | ||
node-version: '12.16.1' | ||
|
||
# FIXME: Reenable after 2020-04-01 when Github cache doesn't take forever. | ||
#- name: cache node modules | ||
# uses: actions/cache@v1 | ||
# with: | ||
# path: ~/.cache/yarn | ||
# key: ${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }} | ||
# restore-keys: | | ||
# ${{ runner.os }}-yarn- | ||
|
||
# 'yarn install' must be done at the top level, to build all the | ||
# cross-package symlinks | ||
- name: yarn install | ||
run: yarn install | ||
# 'yarn build' loops over all workspaces | ||
- name: yarn build | ||
run: yarn build | ||
|
||
# 'yarn lint-check' just checks the lint where desired | ||
- name: lint check | ||
run: yarn lint-check |
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
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