File tree Expand file tree Collapse file tree 2 files changed +20
-29
lines changed Expand file tree Collapse file tree 2 files changed +20
-29
lines changed Original file line number Diff line number Diff line change 6
6
- main
7
7
jobs :
8
8
build :
9
- runs-on : ubuntu-20 .04
9
+ runs-on : ubuntu-22 .04
10
10
steps :
11
11
- name : Check out code
12
- uses : actions/checkout@v2
12
+ uses : actions/checkout@v3
13
13
14
- - name : Cache node modules
15
- uses : actions/cache@v2
14
+ - name : Set up Node 16
15
+ uses : actions/setup-node@v3
16
16
with :
17
- path : ~/.npm
18
- key : ${{ runner.os }}-node-${{ hashFiles('package.json') }}-${{ hashFiles('package-lock.json') }}
19
- restore-keys : |
20
- ${{ runner.os }}-node-${{ hashFiles('package.json') }}-
21
- ${{ runner.os }}-node-
17
+ node-version : ' 16'
18
+ cache : ' npm'
22
19
23
20
- name : NPM Install
24
21
run : npm ci
25
22
26
23
- name : Build
27
24
run : npm run build:ci
28
25
test :
29
- runs-on : ubuntu-20 .04
26
+ runs-on : ubuntu-22 .04
30
27
steps :
31
28
- name : Check out code
32
- uses : actions/checkout@v2
29
+ uses : actions/checkout@v3
33
30
with :
34
31
fetch-depth : 0
35
32
36
- - name : Cache node modules
37
- uses : actions/cache@v2
33
+ - name : Set up Node 16
34
+ uses : actions/setup-node@v3
38
35
with :
39
- path : ~/.npm
40
- key : ${{ runner.os }}-node-${{ hashFiles('package.json') }}-${{ hashFiles('package-lock.json') }}
41
- restore-keys : |
42
- ${{ runner.os }}-node-${{ hashFiles('package.json') }}-
43
- ${{ runner.os }}-node-
36
+ node-version : ' 16'
37
+ cache : ' npm'
44
38
45
39
- name : NPM Install
46
40
run : npm ci
@@ -49,12 +43,12 @@ jobs:
49
43
run : npm run test:ci
50
44
51
45
- name : Upload coverage to Codecov
52
- uses : codecov/codecov-action@v2
46
+ uses : codecov/codecov-action@v3
53
47
with :
54
48
fail_ci_if_error : true
55
49
56
50
- name : Publish Unit Test Results
57
- uses : docker://ghcr.io/enricomi/ publish-unit-test-result-action:v1.6
51
+ uses : EnricoMi/ publish-unit-test-result-action@v2
58
52
continue-on-error : true
59
53
with :
60
54
github_token : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change 5
5
- main
6
6
jobs :
7
7
publish :
8
- runs-on : ubuntu-20 .04
8
+ runs-on : ubuntu-22 .04
9
9
steps :
10
10
- name : Check out code
11
- uses : actions/checkout@v2
11
+ uses : actions/checkout@v3
12
12
13
- - name : Cache node modules
14
- uses : actions/cache@v2
13
+ - name : Set up Node 16
14
+ uses : actions/setup-node@v3
15
15
with :
16
- path : ~/.npm
17
- key : ${{ runner.os }}-node-${{ hashFiles('package.json') }}-${{ hashFiles('package-lock.json') }}
18
- restore-keys : |
19
- ${{ runner.os }}-node-${{ hashFiles('package.json') }}-
20
- ${{ runner.os }}-node-
16
+ node-version : ' 16'
17
+ cache : ' npm'
21
18
22
19
- name : NPM Install
23
20
run : npm ci
You can’t perform that action at this time.
0 commit comments