8
8
paths :
9
9
- ' src/**'
10
10
- ' tests/**'
11
+ - ' package.json'
12
+ - ' package-lock.json'
11
13
- ' .github/workflows/ci-push.yml'
12
14
schedule :
13
15
- cron : ' 0 5 * * 1'
@@ -17,15 +19,15 @@ jobs:
17
19
build :
18
20
runs-on : ubuntu-latest
19
21
steps :
20
- - uses : actions/checkout@v3
22
+ - uses : actions/checkout@v4
21
23
- name : Use Node.js 16.x
22
- uses : actions/setup-node@v3
24
+ uses : actions/setup-node@v4
23
25
with :
24
26
node-version : 16
25
27
- run : npm ci
26
28
- run : npm run lint
27
29
- run : npm run build
28
- - uses : actions/upload-artifact@v3
30
+ - uses : actions/upload-artifact@v4
29
31
with :
30
32
name : build
31
33
path : build
@@ -34,52 +36,41 @@ jobs:
34
36
env :
35
37
AUTH_JSON : ${{secrets.AUTH_JSON}}
36
38
37
- code_ql :
38
- runs-on : ubuntu-latest
39
- name : CodeQL
40
- needs : build
41
- steps :
42
- - uses : actions/checkout@v3
43
- - uses : actions/download-artifact@v3
44
- - name : Initialize CodeQL
45
- uses : github/codeql-action/init@v2
46
- with :
47
- languages : javascript
48
- - name : Perform CodeQL Analysis
49
- uses : github/codeql-action/analyze@v2
50
-
51
39
test :
52
40
runs-on : ubuntu-latest
53
41
strategy :
54
42
matrix :
55
43
node-version : [10.x, 12.x, 16.x, 18.x]
56
44
needs : build
57
45
steps :
58
- - uses : actions/checkout@v3
46
+ - uses : actions/checkout@v4
59
47
- name : Use Node.js ${{ matrix.node-version }}
60
- uses : actions/setup-node@v3
48
+ uses : actions/setup-node@v4
61
49
with :
62
50
node-version : ${{ matrix.node-version }}
63
51
- name : Setup MediaWiki instance using Docker for integration tests
64
52
run : npm run setuplocalwiki
65
53
- run : npm ci
66
- - uses : actions/download-artifact@v3
54
+ - uses : actions/download-artifact@v4
67
55
- run : npm run test
68
56
env :
69
57
AUTH_JSON : ${{secrets.AUTH_JSON}}
70
- - uses : actions/upload-artifact@v3
58
+ - uses : actions/upload-artifact@v4
71
59
with :
72
- name : coverage
73
- path : coverage
60
+ name : coverage_${{ matrix.node-version }}
61
+ path : coverage_${{ matrix.node-version }}
74
62
75
63
coveralls :
76
64
runs-on : ubuntu-latest
77
65
needs : test
78
66
steps :
79
- - uses : actions/checkout@v3
80
- - uses : actions/download-artifact@v3
67
+ - uses : actions/checkout@v4
68
+ - uses : actions/download-artifact@v4
69
+ with :
70
+ name : coverage_18.x
71
+ path : coverage
81
72
- name : Coveralls
82
- uses : coverallsapp/github-action@master
73
+ uses : coverallsapp/github-action@v2
83
74
with :
84
75
github-token : ${{ secrets.GITHUB_TOKEN }}
85
76
88
79
runs-on : ubuntu-latest
89
80
needs : test
90
81
steps :
91
- - uses : actions/download-artifact@v3
82
+ - uses : actions/download-artifact@v4
83
+ with :
84
+ name : coverage_18.x
85
+ path : coverage
92
86
- name : Zip coverage report
93
87
run : |
94
88
mv coverage/lcov-report/* coverage
0 commit comments