Skip to content
This repository was archived by the owner on Mar 30, 2025. It is now read-only.

Commit 8bad0d2

Browse files
committed
Update GitHub workflow
1 parent 8722459 commit 8bad0d2

File tree

1 file changed

+24
-30
lines changed

1 file changed

+24
-30
lines changed

.github/workflows/ci.yml

Lines changed: 24 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,57 +1,51 @@
11
on:
2-
- pull_request
3-
- push
2+
pull_request:
3+
push:
4+
branches: [main]
5+
tags: ['*']
46

57
jobs:
68
eslint:
79
runs-on: ubuntu-latest
810
steps:
9-
- uses: actions/checkout@v1
10-
- uses: actions/setup-node@v1
11+
- uses: actions/checkout@v2
12+
- uses: actions/setup-node@v2
1113
with:
12-
node-version: 14
13-
- name: ESLint
14-
run: |
15-
yarn --frozen-lockfile
16-
yarn eslint .
14+
node-version: 16
15+
- run: yarn --frozen-lockfile
16+
- run: yarn eslint .
1717

1818
jest:
1919
runs-on: ubuntu-latest
2020
strategy:
2121
matrix:
22-
node-version: [12, 14]
22+
node-version: [12, 14, 16]
2323
steps:
24-
- uses: actions/checkout@v1
25-
- uses: actions/setup-node@v1
24+
- uses: actions/checkout@v2
25+
- uses: actions/setup-node@v2
2626
with:
2727
node-version: ${{ matrix.node-version }}
28-
- name: Test
29-
run: |
30-
yarn --frozen-lockfile
31-
yarn test --coverage
32-
- uses: codecov/codecov-action@v1
33-
if: ${{ matrix.node-version == 14 }}
28+
- run: yarn --frozen-lockfile
29+
- run: yarn test --coverage
30+
- uses: codecov/codecov-action@v2
31+
if: ${{ matrix.node-version == 16 }}
3432

3533
prettier:
3634
runs-on: ubuntu-latest
3735
steps:
3836
- uses: actions/checkout@v1
3937
- uses: actions/setup-node@v1
4038
with:
41-
node-version: 14
42-
- name: Prettier
43-
run: |
44-
yarn --frozen-lockfile
45-
yarn prettier .
39+
node-version: 16
40+
- run: yarn --frozen-lockfile
41+
- run: yarn prettier .
4642

4743
tsc:
4844
runs-on: ubuntu-latest
4945
steps:
50-
- uses: actions/checkout@v1
51-
- uses: actions/setup-node@v1
46+
- uses: actions/checkout@v2
47+
- uses: actions/setup-node@v2
5248
with:
53-
node-version: 14
54-
- name: TSC
55-
run: |
56-
yarn --frozen-lockfile
57-
yarn tsc
49+
node-version: 16
50+
- run: yarn --frozen-lockfile
51+
- run: yarn tsc

0 commit comments

Comments
 (0)