Skip to content

Commit 672df5b

Browse files
committed
Use consistent steps across CI actions
1 parent f613c2d commit 672df5b

File tree

3 files changed

+18
-14
lines changed

3 files changed

+18
-14
lines changed

.github/workflows/build.yml

+8-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,14 @@ jobs:
66
build:
77
runs-on: ubuntu-latest
88
steps:
9-
- uses: actions/checkout@v1
9+
- uses: actions/checkout@v2
10+
- uses: actions/setup-node@v2
11+
with:
12+
node-version: '14'
13+
cache: 'npm'
14+
- name: Install npm@7
15+
run: npm i -g npm@7
1016
- name: Install
11-
run: npm install
17+
run: npm ci --prefer-offline
1218
- name: Build
1319
run: npm run build

.github/workflows/integration.yml

+2-10
Original file line numberDiff line numberDiff line change
@@ -18,21 +18,13 @@ jobs:
1818
steps:
1919
- uses: actions/checkout@v2
2020
- name: Setup node
21-
uses: actions/setup-node@v1
21+
uses: actions/setup-node@v2
2222
with:
2323
node-version: ${{ matrix.node }}
24+
cache: 'npm'
2425
- name: Install npm@7
2526
run: npm i -g npm@7
26-
- name: Cache dependencies
27-
id: cache
28-
uses: actions/cache@v2
29-
with:
30-
path: |
31-
node_modules
32-
*/*/node_modules
33-
key: ${{ runner.os }}-${{ hashFiles('**/package-lock.json', './package-lock.json') }}
3427
- name: Install packages
35-
if: steps.cache.outputs.cache-hit != 'true'
3628
run: npm ci --prefer-offline
3729
- name: Run integration tests
3830
run: npm run test:integration

.github/workflows/lint.yml

+8-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,14 @@ jobs:
66
lint:
77
runs-on: ubuntu-latest
88
steps:
9-
- uses: actions/checkout@v1
9+
- uses: actions/checkout@v2
10+
- uses: actions/setup-node@v2
11+
with:
12+
node-version: '14'
13+
cache: 'npm'
14+
- name: Install npm@7
15+
run: npm i -g npm@7
1016
- name: Install
11-
run: npm install
17+
run: npm ci --prefer-offline
1218
- name: Alex
1319
run: npm run alex

0 commit comments

Comments
 (0)