@@ -15,10 +15,10 @@ jobs:
15
15
runs-on : ubuntu-latest
16
16
steps :
17
17
- name : ⬇️ Checkout
18
- uses : actions/checkout@v3
18
+ uses : actions/checkout@v4
19
19
20
20
- name : ⎔ Setup node ${{ matrix.node }}
21
- uses : actions/setup-node@v3
21
+ uses : actions/setup-node@v4
22
22
with :
23
23
cache : npm
24
24
@@ -35,22 +35,23 @@ jobs:
35
35
fail-fast : false
36
36
matrix :
37
37
node :
38
- - 14
39
- - 16
40
38
- 18
39
+ - 20
40
+ - 22
41
+ - 23
41
42
os : [ubuntu-latest, macos-latest, windows-latest]
42
43
43
44
steps :
44
45
- name : 🛑 Cancel Previous Runs
45
-
46
+
46
47
with :
47
48
access_token : ${{ secrets.GITHUB_TOKEN }}
48
49
49
50
- name : ⬇️ Checkout
50
- uses : actions/checkout@v3
51
+ uses : actions/checkout@v4
51
52
52
53
- name : ⎔ Setup node ${{ matrix.node }}
53
- uses : actions/setup-node@v3
54
+ uses : actions/setup-node@v4
54
55
with :
55
56
node-version : ${{ matrix.node }}
56
57
cache : npm
@@ -65,27 +66,28 @@ jobs:
65
66
run : git diff --exit-code
66
67
67
68
- name : Run tests
68
- if : matrix.node != '16 ' || matrix.os != 'ubuntu-latest'
69
- uses : nick-invision/retry@v2
69
+ if : matrix.node != '18 ' || matrix.os != 'ubuntu-latest'
70
+ uses : nick-invision/retry@v3
70
71
with :
71
72
timeout_minutes : 20
72
73
max_attempts : 3
73
74
command : npm run test
74
75
75
76
- name : Run coverage
76
- if : matrix.node == '16 ' && matrix.os == 'ubuntu-latest'
77
- uses : nick-invision/retry@v2
77
+ if : matrix.node == '18 ' && matrix.os == 'ubuntu-latest'
78
+ uses : nick-invision/retry@v3
78
79
with :
79
80
timeout_minutes : 20
80
81
max_attempts : 3
81
82
command : npm run test:coverage
82
83
83
84
- name : ⬆️ Upload coverage to Codecov
84
- if : matrix.node == '16 ' && matrix.os == 'ubuntu-latest'
85
- uses : codecov/codecov-action@v3
85
+ if : matrix.node == '18 ' && matrix.os == 'ubuntu-latest'
86
+ uses : codecov/codecov-action@v5
86
87
with :
87
88
files : ./coverage/coverage-final.json
88
89
name : codecov-prod
90
+ token : ${{ secrets.CODECOV_TOKEN }}
89
91
90
92
release :
91
93
if : ${{ github.repository == 'htmlhint/HTMLHint' &&
@@ -95,10 +97,10 @@ jobs:
95
97
needs : build
96
98
steps :
97
99
- name : ⬇️ Checkout repo
98
- uses : actions/checkout@v3
100
+ uses : actions/checkout@v4
99
101
100
102
- name : ⎔ Setup node
101
- uses : actions/setup-node@v3
103
+ uses : actions/setup-node@v4
102
104
with :
103
105
cache : npm
104
106
@@ -109,7 +111,7 @@ jobs:
109
111
run : npm run build
110
112
111
113
- name : 🚢 Release
112
- uses : cycjimmy/semantic-release-action@v3
114
+ uses : cycjimmy/semantic-release-action@v4
113
115
with :
114
116
extra_plugins : |
115
117
@semantic-release/changelog
0 commit comments