9
9
branches : [main, master]
10
10
11
11
jobs :
12
- <<<<<<< HEAD
13
- basic_node_test :
14
- name : ' Basic tests on ubuntu-latest with nodejs v22 (current LTS version)'
15
- runs-on : ubuntu-latest
16
- steps :
17
- - uses : actions/checkout@v2
18
- - uses : actions/setup-node@v2
19
- with :
20
- node-version : ${{ matrix.node }}
21
- - name : Install npm dependencies
22
- run : npm install
23
- - name : Print put node & npm version
24
- run : node --version && npm --version
25
- - name : Install chromium
26
- # package.json specifies 1.49.X; we need to align to ensure the correct browser binaries are installed as playwright may push new releases
27
- run :
npx [email protected] install chromium
28
- - name : Run unit test
29
- run : npm run test
30
-
31
- windows_and_macos_test :
32
- name : ' Platform tests on ${{matrix.os}} with nodejs v${{matrix.node}}'
33
- needs : basic_node_test
34
- strategy :
35
- matrix :
36
- # Test all mainstream operating system
37
- os : [macos-latest, windows-latest]
38
- node : [22]
39
- runs-on : ${{ matrix.os }}
40
- steps :
41
- # Pull repo to test machine
42
- - uses : actions/checkout@v2
43
- # Configures the node version used on GitHub-hosted runners
44
- - uses : actions/setup-node@v2
45
- with :
46
- # The Node.js version to configure
47
- node-version : ${{ matrix.node }}
48
- - name : Install npm dependencies
49
- run : npm install
50
- - name : Print put node & npm version
51
- # Output useful info for debugging.
52
- run : node --version && npm --version
53
- - name : Install chromium
54
- # package.json specifies 1.49.X; we need to align to ensure the correct browser binaries are installed as playwright may push new releases
55
- run :
npx [email protected] install chromium
56
- - name : Run unit test
57
- run : npm run test
58
- =======
59
12
test :
60
13
name : ' Tests on ${{matrix.os}} with Node "${{matrix.node}}"'
61
14
strategy :
@@ -72,45 +25,10 @@ jobs:
72
25
node : ' lts/-2'
73
26
- os : ubuntu-latest
74
27
node : ' lts/-3'
75
- >>>>>>> master
76
28
77
29
runs-on : ${{ matrix.os }}
78
30
# This has copy/paste steps and should be refactored using DRY
79
31
steps :
80
- <<<<<<< HEAD
81
- - uses : actions/checkout@v2
82
- - uses : actions/setup-node@v2
83
- with :
84
- node-version : ${{ matrix.node }}
85
- - name : Install npm dependencies
86
- run : npm install
87
- - name : Print put node & npm version
88
- run : node --version && npm --version
89
- - name : Install chromium
90
- # package.json specifies 1.49.X; we need to align to ensure the correct browser binaries are installed as playwright may push new releases
91
- run :
npx [email protected] install chromium
92
- - name : Run unit test
93
- run : npm run test
94
-
95
- latest_nodejs_testing_node23 :
96
- name : ' Latest nodejs v23 test'
97
- needs : basic_node_test
98
- runs-on : ubuntu-latest
99
- steps :
100
- - uses : actions/checkout@v2
101
- - uses : actions/setup-node@v2
102
- with :
103
- node-version : 23
104
- - name : Install npm dependencies
105
- run : npm install
106
- - name : Print put node & npm version
107
- run : node --version && npm --version
108
- - name : Install chromium
109
- # package.json specifies 1.49.X; we need to align to ensure the correct browser binaries are installed as playwright may push new releases
110
- run :
npx [email protected] install chromium
111
- - name : Run unit test
112
- run : npm run test
113
- =======
114
32
- uses : actions/checkout@v4
115
33
- name : Install pnpm
116
34
uses : pnpm/action-setup@v4
128
46
run : npx playwright install chromium
129
47
- name : Run unit test
130
48
run : pnpm run test
131
- >>>>>>> master
0 commit comments