Skip to content

Commit fe8f7ce

Browse files
committed
Cache npm
Only test on different node versions
1 parent e2ebaa8 commit fe8f7ce

File tree

4 files changed

+12
-24
lines changed

4 files changed

+12
-24
lines changed

.github/workflows/cpd.yml

+3-6
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,13 @@ jobs:
77

88
runs-on: ubuntu-latest
99

10-
strategy:
11-
matrix:
12-
node-version: [18.x]
13-
1410
steps:
1511
- uses: actions/checkout@v3
16-
- name: Use Node.js ${{ matrix.node-version }}
12+
- name: Use Node.js 18
1713
uses: actions/setup-node@v3
1814
with:
19-
node-version: ${{ matrix.node-version }}
15+
node-version: 18
16+
cache: 'npm'
2017
- name: npm lint
2118
run: |
2219
npm ci

.github/workflows/lint.yml

+3-6
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,13 @@ jobs:
77

88
runs-on: ubuntu-latest
99

10-
strategy:
11-
matrix:
12-
node-version: [18.x]
13-
1410
steps:
1511
- uses: actions/checkout@v3
16-
- name: Use Node.js ${{ matrix.node-version }}
12+
- name: Use Node.js 18
1713
uses: actions/setup-node@v3
1814
with:
19-
node-version: ${{ matrix.node-version }}
15+
node-version: 18
16+
cache: 'npm'
2017
- name: npm lint
2118
run: |
2219
npm ci

.github/workflows/sonarcloud.yml

+3-6
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,13 @@ jobs:
77

88
runs-on: ubuntu-latest
99

10-
strategy:
11-
matrix:
12-
node-version: [18.x]
13-
1410
steps:
1511
- uses: actions/checkout@v2
16-
- name: Use Node.js ${{ matrix.node-version }}
12+
- name: Use Node.js 18
1713
uses: actions/setup-node@v1
1814
with:
19-
node-version: ${{ matrix.node-version }}
15+
node-version: 18
16+
cache: 'npm'
2017
- name: npm install, lint, and test
2118
run: |
2219
npm ci

.github/workflows/vulnerabilities.yml

+3-6
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,13 @@ jobs:
77

88
runs-on: ubuntu-latest
99

10-
strategy:
11-
matrix:
12-
node-version: [18.x]
13-
1410
steps:
1511
- uses: actions/checkout@v3
16-
- name: Use Node.js ${{ matrix.node-version }}
12+
- name: Use Node.js 18
1713
uses: actions/setup-node@v3
1814
with:
19-
node-version: ${{ matrix.node-version }}
15+
node-version: 18
16+
cache: 'npm'
2017
- name: npm lint
2118
run: |
2219
npm ci

0 commit comments

Comments
 (0)