You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
2
-
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs
3
-
4
1
name: Node.js CI
5
2
6
3
on:
7
4
push:
8
-
branches: [ "master" ]
5
+
branches: [ "master", "develop" ]
9
6
pull_request:
10
7
branches: [ "master" ]
11
8
@@ -14,32 +11,21 @@ jobs:
14
11
15
12
runs-on: ubuntu-latest
16
13
14
+
strategy:
15
+
matrix:
16
+
node-version: [19.x, 20.x, 21.x]
17
+
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
18
+
17
19
steps:
18
20
- uses: actions/checkout@v3
19
-
- name: Use Node.js 20.x
21
+
- name: Use Node.js ${{ matrix.node-version }}
20
22
uses: actions/setup-node@v3
21
23
with:
22
-
node-version: "20.x"
24
+
node-version: ${{ matrix.node-version }}
23
25
cache: "npm"
24
26
- run: npm install
25
27
- run: npm run build
26
28
- run: npm test
27
29
- run: sudo apt-get install xvfb
28
30
- run: xvfb-run --auto-servernum npm run test:chrome
29
31
- run: xvfb-run --auto-servernum npm run test:firefox
0 commit comments