11
11
branches :
12
12
- master
13
13
- 1.[0-9]+.x
14
-
14
+
15
15
env :
16
16
TZ : " Europe/Brussels"
17
17
MAIN_NODEJS : " 18"
@@ -26,11 +26,11 @@ jobs:
26
26
runs-on : ${{ matrix.os }}
27
27
strategy :
28
28
matrix :
29
- node_version : [ "18" ]
30
- os : [ ubuntu-latest ]
31
- experimental : [ false ]
29
+ node_version : ["18"]
30
+ os : [ubuntu-latest]
31
+ experimental : [false]
32
32
# Mark following configurations as "experimental" and allow to continue in case of error
33
- # See documentation: https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#example-including-new-combinations
33
+ # See documentation: https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#example-including-new-combinations
34
34
include :
35
35
- os : macos-latest
36
36
node_version : 18
@@ -47,29 +47,29 @@ jobs:
47
47
fi
48
48
49
49
# See: https://github.com/marketplace/actions/checkout
50
- - uses : actions/checkout@v2
50
+ - uses : actions/checkout@v4
51
51
52
52
# See: https://github.com/marketplace/actions/setup-node-js-environment
53
53
- name : Use Node.js ${{ matrix.node_version }}
54
- uses : actions/setup-node@v2
54
+ uses : actions/setup-node@v4
55
55
with :
56
56
node-version : ${{ matrix.node_version }}
57
57
58
58
# See: https://github.com/marketplace/actions/cache
59
59
# See doc: https://docs.github.com/en/actions/guides/caching-dependencies-to-speed-up-workflows
60
60
- name : Cache node modules
61
- uses : actions/cache@v2
61
+ uses : actions/cache@v4
62
62
env :
63
63
cache-name : cache-node-modules-${{ matrix.node_version }}-${{ matrix.os }}
64
64
with :
65
- # npm cache files are stored in `~/.npm` on Linux/macOS
65
+ # npm cache files are stored in `~/.npm` on Linux
66
66
path : ~/.npm
67
67
key : ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
68
68
restore-keys : |
69
69
${{ runner.os }}-build-${{ env.cache-name }}-
70
70
${{ runner.os }}-build-
71
71
${{ runner.os }}-
72
-
72
+
73
73
- name : Install npm ${{ env.NPM_VERSION }}
74
74
run : npm i -g npm@${{ env.NPM_VERSION }}
75
75
@@ -101,23 +101,22 @@ jobs:
101
101
# npm run test:ci:all // comand remove due to incomability node18 and angular12
102
102
npm run test:ci
103
103
npm run test:ci:demo:ng-latest
104
-
105
104
106
105
- name : Generate docs coverage
107
106
run : npm run docs:coverage
108
107
if : env.IS_MAIN_ENVIRONMENT == 1
109
108
110
- # See: https://github.com/marketplace/actions/upload-artifact
109
+ # See: https://github.com/marketplace/actions/upload-a-build- artifact
111
110
- name : Upload ngx-form-errors dist folder
112
- uses : actions/upload-artifact@v2
111
+ uses : actions/upload-artifact@v4
113
112
with :
114
113
name : ngx-form-errors-dist
115
114
path : dist
116
115
if : env.IS_MAIN_ENVIRONMENT == 1
117
116
118
117
# See: https://github.com/marketplace/actions/coveralls-github-action
119
118
- name : Coveralls
120
- uses : coverallsapp/github-action@master
119
+ uses : coverallsapp/github-action@v2
121
120
with :
122
121
github-token : ${{ secrets.GITHUB_TOKEN }}
123
122
path-to-lcov : " reports/coverage/lcov.info"
@@ -130,18 +129,19 @@ jobs:
130
129
if : startsWith(github.ref, 'refs/tags/')
131
130
steps :
132
131
# See: https://github.com/marketplace/actions/checkout
133
- - uses : actions/checkout@v2
132
+ - uses : actions/checkout@v4
134
133
135
134
# See: https://github.com/marketplace/actions/setup-node-js-environment
136
135
- name : Use Node.js ${{ env.MAIN_NODEJS }}
137
- uses : actions/setup-node@v2
136
+ uses : actions/setup-node@v4
138
137
with :
139
138
node-version : ${{ env.MAIN_NODEJS }}
140
139
141
140
- name : Install npm ${{ env.NPM_VERSION }}
142
141
run : npm i -g npm@${{ env.NPM_VERSION }}
143
142
144
- - uses : actions/download-artifact@v2
143
+ # See: https://github.com/marketplace/actions/download-a-build-artifact
144
+ - uses : actions/download-artifact@v4
145
145
with :
146
146
name : ngx-form-errors-dist
147
147
path : dist
0 commit comments