-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
bbc2abf
commit 3f8763d
Showing
1 changed file
with
15 additions
and
8 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 |
---|---|---|
@@ -1,22 +1,29 @@ | ||
name: CI | ||
on: | ||
push: | ||
branches: [main] | ||
branches: | ||
- main | ||
pull_request: | ||
branches: [main] | ||
branches: | ||
- main | ||
concurrency: | ||
group: ${{ github.ref }} | ||
cancel-in-progress: true | ||
jobs: | ||
build: | ||
main: | ||
runs-on: macOS-latest | ||
timeout-minutes: 10 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v2 | ||
- name: Checkout commit | ||
uses: actions/checkout@v2 | ||
- name: Prepare Node.js | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: "14" | ||
cache: "yarn" | ||
- name: Install dependencies | ||
run: yarn | ||
- name: Run linting | ||
- name: Install dependencies and build | ||
run: yarn install | ||
- name: Lint files | ||
run: yarn lint | ||
- name: Run tests | ||
run: yarn test |