-
-
Notifications
You must be signed in to change notification settings - Fork 7
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
8722459
commit 8bad0d2
Showing
1 changed file
with
24 additions
and
30 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,57 +1,51 @@ | ||
on: | ||
- pull_request | ||
- push | ||
pull_request: | ||
push: | ||
branches: [main] | ||
tags: ['*'] | ||
|
||
jobs: | ||
eslint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- uses: actions/setup-node@v1 | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v2 | ||
with: | ||
node-version: 14 | ||
- name: ESLint | ||
run: | | ||
yarn --frozen-lockfile | ||
yarn eslint . | ||
node-version: 16 | ||
- run: yarn --frozen-lockfile | ||
- run: yarn eslint . | ||
|
||
jest: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
node-version: [12, 14] | ||
node-version: [12, 14, 16] | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- uses: actions/setup-node@v1 | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v2 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
- name: Test | ||
run: | | ||
yarn --frozen-lockfile | ||
yarn test --coverage | ||
- uses: codecov/codecov-action@v1 | ||
if: ${{ matrix.node-version == 14 }} | ||
- run: yarn --frozen-lockfile | ||
- run: yarn test --coverage | ||
- uses: codecov/codecov-action@v2 | ||
if: ${{ matrix.node-version == 16 }} | ||
|
||
prettier: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- uses: actions/setup-node@v1 | ||
with: | ||
node-version: 14 | ||
- name: Prettier | ||
run: | | ||
yarn --frozen-lockfile | ||
yarn prettier . | ||
node-version: 16 | ||
- run: yarn --frozen-lockfile | ||
- run: yarn prettier . | ||
|
||
tsc: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- uses: actions/setup-node@v1 | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v2 | ||
with: | ||
node-version: 14 | ||
- name: TSC | ||
run: | | ||
yarn --frozen-lockfile | ||
yarn tsc | ||
node-version: 16 | ||
- run: yarn --frozen-lockfile | ||
- run: yarn tsc |