Skip to content
This repository was archived by the owner on Feb 9, 2023. It is now read-only.

Commit c44f6b1

Browse files
authored
Merge pull request #240 from puku0x/ci-fix-workflow
Fix CI workflow
2 parents 09af2eb + 5cf73a2 commit c44f6b1

File tree

1 file changed

+9
-15
lines changed

1 file changed

+9
-15
lines changed

.github/workflows/nodejs.yml

Lines changed: 9 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -9,27 +9,20 @@ on:
99
branches:
1010
- '**'
1111

12-
env:
13-
CI: true
14-
1512
jobs:
1613
lint:
17-
name: Lint on Node.js ${{ matrix.node }} and ${{ matrix.os }}
18-
19-
runs-on: ${{ matrix.os }}
14+
name: Lint on Node.js LTS
2015

21-
strategy:
22-
matrix:
23-
node: [12]
24-
os: [ubuntu-latest]
16+
runs-on: ubuntu-latest
2517

2618
steps:
2719
- uses: actions/checkout@v2
2820

29-
- name: Use Node.js ${{ matrix.node }}
30-
uses: actions/setup-node@v1
21+
- name: Use Node.js LTS
22+
uses: actions/setup-node@v2
3123
with:
32-
node-version: ${{ matrix.node }}
24+
node-version: 'lts/*'
25+
cache: npm
3326

3427
- name: Install latest npm
3528
run: npm install --global npm@latest
@@ -48,15 +41,16 @@ jobs:
4841
strategy:
4942
fail-fast: false
5043
matrix:
51-
node: [10, 12]
44+
node: [12, 14, 16]
5245

5346
steps:
5447
- uses: actions/checkout@v2
5548

5649
- name: Use Node.js ${{ matrix.node }}
57-
uses: actions/setup-node@v1
50+
uses: actions/setup-node@v2
5851
with:
5952
node-version: ${{ matrix.node }}
53+
cache: npm
6054

6155
- name: Install latest npm
6256
run: npm install --global npm@latest

0 commit comments

Comments
 (0)