Skip to content
This repository was archived by the owner on Apr 5, 2024. It is now read-only.

Commit c2e3ba7

Browse files
authored
use npm ci (#224)
* use npm ci (see https://docs.npmjs.com/cli/v7/commands/npm-ci) * use caching for deps
1 parent 616c58d commit c2e3ba7

File tree

5 files changed

+23
-13
lines changed

5 files changed

+23
-13
lines changed

.github/workflows/featureRelease.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,14 @@ jobs:
2121
fetch-depth: 0
2222
-
2323
name: Set up Node.js environment
24-
uses: actions/setup-node@v2.1.5
24+
uses: actions/setup-node@v2
2525
with:
26-
node-version: 12
26+
node-version: 14
27+
cache: 'npm'
2728
-
2829
name: Checkout frontend
2930
run: |
30-
npm i
31+
npm ci
3132
-
3233
name: Update Sonar
3334
run: |

.github/workflows/latestRelease.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,14 @@ jobs:
1818
uses: actions/checkout@v2
1919
-
2020
name: Set up Node.js environment
21-
uses: actions/setup-node@v2.1.5
21+
uses: actions/setup-node@v2
2222
with:
23-
node-version: 12
23+
node-version: 14
24+
cache: 'npm'
2425
-
2526
name: Checkout frontend
2627
run: |
27-
npm i
28+
npm ci
2829
-
2930
name: Update Sonar
3031
run: |

.github/workflows/stableRelease.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,13 @@ jobs:
1212
- name: Set up Project
1313
uses: actions/checkout@v2
1414
- name: Set up Node.js environment
15-
uses: actions/setup-node@v2.1.5
15+
uses: actions/setup-node@v2
1616
with:
17-
node-version: 12
17+
node-version: 14
18+
cache: 'npm'
1819
- name: Build frontend
1920
run: |
20-
npm i
21+
npm ci
2122
npm run-script build
2223
cp -r build webapp_provider/public
2324
- name: Login to DockerHub

.github/workflows/storybookBuild.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,13 @@ jobs:
1212
- name: Set up Project
1313
uses: actions/checkout@v2
1414
- name: Set up Node.js environment
15-
uses: actions/setup-node@v2.1.5
15+
uses: actions/setup-node@v2
1616
with:
17-
node-version: 12
17+
node-version: 14
18+
cache: 'npm'
1819
- name: Build storybook
1920
run: |
20-
npm i
21+
npm ci
2122
npm run build-storybook
2223
cp -r storybook-static storybook_provider/public
2324
- name: Login to DockerHub

.github/workflows/tests.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,17 @@ jobs:
1212
steps:
1313
- name: Checkout
1414
uses: actions/checkout@v2
15+
-
16+
name: Set up Node.js environment
17+
uses: actions/setup-node@v2
18+
with:
19+
node-version: 14
20+
cache: 'npm'
1521
# Install NPM dependencies, build the webpage and start it
1622
# and run all Cypress tests
1723
- name: Start FE and run jest tests
1824
run: |
19-
npm i
25+
npm ci
2026
npm test -- --watchAll=false
2127
npm start &
2228
- name: Wait

0 commit comments

Comments
 (0)