This repository was archived by the owner on Apr 5, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 5 files changed +23
-13
lines changed Expand file tree Collapse file tree 5 files changed +23
-13
lines changed Original file line number Diff line number Diff line change @@ -21,13 +21,14 @@ jobs:
21
21
fetch-depth : 0
22
22
-
23
23
name : Set up Node.js environment
24
- uses : actions/setup-node@v2.1.5
24
+ uses : actions/setup-node@v2
25
25
with :
26
- node-version : 12
26
+ node-version : 14
27
+ cache : ' npm'
27
28
-
28
29
name : Checkout frontend
29
30
run : |
30
- npm i
31
+ npm ci
31
32
-
32
33
name : Update Sonar
33
34
run : |
Original file line number Diff line number Diff line change @@ -18,13 +18,14 @@ jobs:
18
18
uses : actions/checkout@v2
19
19
-
20
20
name : Set up Node.js environment
21
- uses : actions/setup-node@v2.1.5
21
+ uses : actions/setup-node@v2
22
22
with :
23
- node-version : 12
23
+ node-version : 14
24
+ cache : ' npm'
24
25
-
25
26
name : Checkout frontend
26
27
run : |
27
- npm i
28
+ npm ci
28
29
-
29
30
name : Update Sonar
30
31
run : |
Original file line number Diff line number Diff line change @@ -12,12 +12,13 @@ jobs:
12
12
- name : Set up Project
13
13
uses : actions/checkout@v2
14
14
- name : Set up Node.js environment
15
- uses : actions/setup-node@v2.1.5
15
+ uses : actions/setup-node@v2
16
16
with :
17
- node-version : 12
17
+ node-version : 14
18
+ cache : ' npm'
18
19
- name : Build frontend
19
20
run : |
20
- npm i
21
+ npm ci
21
22
npm run-script build
22
23
cp -r build webapp_provider/public
23
24
- name : Login to DockerHub
Original file line number Diff line number Diff line change @@ -12,12 +12,13 @@ jobs:
12
12
- name : Set up Project
13
13
uses : actions/checkout@v2
14
14
- name : Set up Node.js environment
15
- uses : actions/setup-node@v2.1.5
15
+ uses : actions/setup-node@v2
16
16
with :
17
- node-version : 12
17
+ node-version : 14
18
+ cache : ' npm'
18
19
- name : Build storybook
19
20
run : |
20
- npm i
21
+ npm ci
21
22
npm run build-storybook
22
23
cp -r storybook-static storybook_provider/public
23
24
- name : Login to DockerHub
Original file line number Diff line number Diff line change @@ -12,11 +12,17 @@ jobs:
12
12
steps :
13
13
- name : Checkout
14
14
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'
15
21
# Install NPM dependencies, build the webpage and start it
16
22
# and run all Cypress tests
17
23
- name : Start FE and run jest tests
18
24
run : |
19
- npm i
25
+ npm ci
20
26
npm test -- --watchAll=false
21
27
npm start &
22
28
- name : Wait
You can’t perform that action at this time.
0 commit comments