File tree Expand file tree Collapse file tree 1 file changed +10
-6
lines changed Expand file tree Collapse file tree 1 file changed +10
-6
lines changed Original file line number Diff line number Diff line change 13
13
jobs :
14
14
test :
15
15
runs-on : ubuntu-latest
16
-
16
+
17
17
steps :
18
18
- uses : actions/checkout@v3
19
19
20
- - name : Install Node.js
20
+ - name : Set up Node.js
21
21
uses : actions/setup-node@v3
22
22
with :
23
23
node-version : 18
24
24
25
- - name : Clean install the project
25
+ - name : Install dependencies
26
26
run : npm ci
27
27
28
- - name : Install ChromeDriver
29
- run : npm install chromedriver --detect_chromedriver_version
28
+ - name : Install matching ChromeDriver
29
+ run : |
30
+ CHROME_VERSION=$(google-chrome --version | grep -oP '\d+\.\d+\.\d+' | head -1)
31
+ CHROME_MAJOR_VERSION=$(echo "$CHROME_VERSION" | cut -d '.' -f 1)
32
+ echo "Detected Chrome version: $CHROME_VERSION (major: $CHROME_MAJOR_VERSION)"
33
+ npm install chromedriver@$CHROME_MAJOR_VERSION
30
34
31
- - name : Execute all tests
35
+ - name : Run tests
32
36
run : npm run test:ci
You can’t perform that action at this time.
0 commit comments