77 strategy :
88 fail-fast : false
99 matrix :
10- browser : [ firefox, chrome, 'chrome:beta', edge ]
11- # browser: [ firefox, chrome, edge ] #chrome beta causing issues
10+ browser : [ firefox, chrome-for-testing, edge ] # chrome beta causing issues
1211
1312 steps :
1413 - name : Checkout code
@@ -20,23 +19,40 @@ jobs:
2019 BRANCH_NAME=$(echo "${{ github.ref }}" | awk -F'/' '{print $3}')
2120 echo "::set-output name=TEST_RUN_NAME::${{ matrix.browser }}-${{ github.workflow }}—$BRANCH_NAME"
2221
22+ - name : Setup Edge
23+ if : ${{ startsWith(matrix.browser, 'edge') }}
24+ id : setup-edge
25+ uses : browser-actions/setup-edge@v1
26+
27+ - name : Print Edge location
28+ if : ${{ startsWith(matrix.browser, 'edge') }}
29+ run : cat ${{ steps.setup-edge.outputs.edge-path }}
30+
31+ - name : Setup Chrome
32+ if : ${{ startsWith(matrix.browser, 'chrome') }}
33+ uses : browser-actions/setup-chrome@v2
34+ with :
35+ install-dependencies : true
36+
37+ - name : Setup Firefox
38+ if : ${{ startsWith(matrix.browser, 'firefox') }}
39+ uses : browser-actions/setup-firefox@v1
40+
41+ - name : Install node version 24
42+ uses : actions/setup-node@v3
43+ with :
44+ node-version : ' 24'
45+
2346 - name : Install root dependencies
2447 run : npm install
2548
2649 - name : Install test dependencies
2750 run : npm install
2851 working-directory : ./test
2952
30- - name : Install Chrome Beta
31- if : ${{ startsWith(matrix.browser, 'chrome') }}
32- run : |
33- curl -sS -o - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
34- echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" | sudo tee /etc/apt/sources.list.d/google-chrome-beta.list
35- sudo apt-get update
36- sudo apt-get install google-chrome-beta
37-
38- - name : Cypress run
39- uses : cypress-io/github-action@v5
53+ - name : Cypress run chrome or firefox
54+ if : ${{ matrix.browser == 'chrome-for-testing' || startsWith(matrix.browser, 'firefox') }}
55+ uses : cypress-io/github-action@v6
4056 with :
4157 quiet : true
4258 working-directory : ./test
5066 SBVT_SCM_BRANCH : ${{ github.head_ref || github.ref_name }}
5167 SBVT_SCM_COMMIT_ID : ${{ github.sha }}
5268 DEBUG : TRUE
69+
70+ - name : Cypress run edge
71+ if : ${{ startsWith(matrix.browser, 'edge') }}
72+ uses : cypress-io/github-action@v6
73+ with :
74+ quiet : true
75+ working-directory : ./test
76+ spec : cypress/e2e/test-spec/quick-test_*
77+ browser : ${{ steps.setup-edge.outputs.edge-path }}
78+
79+ env :
80+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
81+ PROJECT_TOKEN : ${{ secrets.DEV_EXAMPLE_7 }}
82+ TEST_RUN_NAME : ${{ steps.set-test-run-name.outputs.TEST_RUN_NAME }}
83+ SBVT_SCM_BRANCH : ${{ github.head_ref || github.ref_name }}
84+ SBVT_SCM_COMMIT_ID : ${{ github.sha }}
85+ DEBUG : TRUE
0 commit comments