Skip to content

Commit 09a974f

Browse files
committed
ci: update workflow
1 parent d8a3acc commit 09a974f

File tree

1 file changed

+10
-26
lines changed

1 file changed

+10
-26
lines changed

.github/workflows/ci.yml

Lines changed: 10 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,9 @@ on:
99
jobs:
1010
test:
1111
runs-on: ubuntu-latest
12-
if: |
13-
!contains(toJSON(github.event.commits.*.message), '[skip ci]') &&
14-
!contains(toJSON(github.event.commits.*.message), '[ci skip]')
1512
strategy:
1613
matrix:
17-
node: [10, 12, 14]
18-
eslint: [6, 7]
19-
test-node: [false]
20-
include:
21-
- node: 14
22-
eslint: 6
23-
test-node: 8
14+
node: [12, 14, 16]
2415

2516
steps:
2617
- uses: actions/checkout@v2
@@ -33,7 +24,7 @@ jobs:
3324
node-version: ${{ matrix.node }}
3425

3526
- name: Install dependencies
36-
run: yarn --immutable
27+
run: yarn
3728
env:
3829
YARN_ENABLE_SCRIPTS: 0 # disable postinstall scripts
3930

@@ -43,22 +34,15 @@ jobs:
4334
- name: Build plugin
4435
run: yarn build
4536

46-
- name: Use Node.js ${{ matrix.test-node }} for testing
47-
uses: actions/setup-node@v1
48-
if: matrix.test-node
49-
with:
50-
node-version: ${{ matrix.test-node }}
51-
52-
- name: Use Yarn 1
53-
run: echo "::set-env name=YARN_IGNORE_PATH::1"
54-
if: matrix.test-node && matrix.test-node < 10
55-
5637
- name: Run tests
5738
run: |
5839
cd test
59-
YARN_CHECKSUM_BEHAVIOR=update yarn
60-
yarn add -D eslint@${{ matrix.eslint }}
40+
yarn
41+
yarn add -D eslint
6142
yarn test
43+
env:
44+
YARN_CHECKSUM_BEHAVIOR: update
45+
YARN_ENABLE_IMMUTABLE_INSTALLS: 0
6246

6347
release:
6448
runs-on: ubuntu-latest
@@ -70,13 +54,13 @@ jobs:
7054
with:
7155
persist-credentials: false # minimize exposure and prevent accidental pushes
7256

73-
- name: Use Node.js 12
57+
- name: Use Node.js 16
7458
uses: actions/setup-node@v1
7559
with:
76-
node-version: 12
60+
node-version: 16
7761

7862
- name: Install dependencies
79-
run: yarn --immutable
63+
run: yarn
8064
env:
8165
YARN_ENABLE_SCRIPTS: 0 # disable postinstall scripts
8266

0 commit comments

Comments
 (0)