4
4
push :
5
5
branches :
6
6
- master
7
- - 5.x
8
7
pull_request :
9
8
branches :
10
9
- master
11
- - 5.x
12
10
schedule :
13
11
- cron : ' 0 2 * * 1' # At 02:00 on Monday
14
12
@@ -21,31 +19,25 @@ jobs:
21
19
timeout-minutes : 15
22
20
strategy :
23
21
matrix :
24
- node-version : [10, 12, 14, 16, 17, 18 ]
22
+ node-version : [14, 16, 18, 19 ]
25
23
mongodb-version : [4.4]
26
24
fail-fast : false
27
25
steps :
28
- - uses : actions/checkout@v3
26
+ - uses : actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # tag=v3.1.0
29
27
- name : Use Node.js ${{ matrix.node-version }}
30
- uses : actions/setup-node@v3
28
+ uses : actions/setup-node@8c91899e586c5b171469028077307d293428b516 # tag=v3.5.1
31
29
with :
32
30
node-version : ${{ matrix.node-version }}
33
31
- name : Start MongoDB
34
- uses :
supercharge/[email protected]
32
+ uses : supercharge/mongodb-github-action@538a4d2a1041920c47630172445cb688592d6e51 # tag= 1.8.0
35
33
with :
36
34
mongodb-version : ${{ matrix.mongodb-version }}
37
35
- name : Bootstrap project
38
36
run : npm ci --ignore-scripts
39
- - name : Update NPM (Node.js v10)
40
- if : matrix.node-version == 10
41
- run : npm install --global npm@7
42
- - name : Update NPM
43
- if : matrix.node-version != 10
44
- run : npm install --global npm@8
45
37
- name : Run tests
46
- run : npm test --ignore-scripts
38
+ run : npm test
47
39
- name : Publish coverage report to Coveralls
48
- uses : coverallsapp/github-action@master
40
+ uses : coverallsapp/github-action@9ba913c152ae4be1327bfb9085dc806cedb44057 # tag=v1.1.3
49
41
with :
50
42
github-token : ${{ secrets.GITHUB_TOKEN }}
51
43
flag-name : run-${{ matrix.os }}-node@${{ matrix.node-version }}
58
50
runs-on : ubuntu-latest
59
51
steps :
60
52
- name : Coveralls finished
61
- uses : coverallsapp/github-action@master
53
+ uses : coverallsapp/github-action@9ba913c152ae4be1327bfb9085dc806cedb44057 # tag=v1.1.3
62
54
with :
63
55
github-token : ${{ secrets.github_token }}
64
56
parallel-finished : true
67
59
name : Code Lint
68
60
runs-on : ubuntu-latest
69
61
steps :
70
- - uses : actions/checkout@v3
62
+ - uses : actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # tag=v3.1.0
71
63
- name : Use Node.js 16
72
- uses : actions/setup-node@v3
64
+ uses : actions/setup-node@8c91899e586c5b171469028077307d293428b516 # tag=v3.5.1
73
65
with :
74
66
node-version : 16
75
67
- name : Bootstrap project
@@ -81,17 +73,23 @@ jobs:
81
73
name : Commit Lint
82
74
runs-on : ubuntu-latest
83
75
steps :
84
- - uses : actions/checkout@v3
76
+ - uses : actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # tag=v3.1.0
85
77
with :
86
78
fetch-depth : 0
87
79
- name : Use Node.js 16
88
- uses : actions/setup-node@v3
80
+ uses : actions/setup-node@8c91899e586c5b171469028077307d293428b516 # tag=v3.5.1
89
81
with :
90
82
node-version : 16
91
83
- name : Bootstrap project
92
84
run : npm ci --ignore-scripts
93
85
- name : Verify commit linting
94
- run : npx --no-install commitlint --from origin/master --to HEAD --verbose
86
+ run : |
87
+ npx
88
+ --no-install
89
+ commitlint
90
+ --from=origin/master
91
+ --to=HEAD
92
+ --verbose
95
93
96
94
codeql :
97
95
name : CodeQL
@@ -101,13 +99,13 @@ jobs:
101
99
security-events : write
102
100
steps :
103
101
- name : Checkout repository
104
- uses : actions/checkout@v3
102
+ uses : actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # tag=v3.1.0
105
103
106
104
- name : Initialize CodeQL
107
- uses : github/codeql-action/init@v2
105
+ uses : github/codeql-action/init@cc7986c02bac29104a72998e67239bb5ee2ee110 # tag=v2.1.28
108
106
with :
109
107
languages : ' javascript'
110
108
config-file : ./.github/codeql/codeql-config.yml
111
109
112
110
- name : Perform CodeQL Analysis
113
- uses : github/codeql-action/analyze@v2
111
+ uses : github/codeql-action/analyze@cc7986c02bac29104a72998e67239bb5ee2ee110 # tag=v2.1.28
0 commit comments