Skip to content

Commit

Permalink
Run Cypress in both firefox & chrome (#4106)
Browse files Browse the repository at this point in the history
* Run Cypress in both firefox & chrome

* Use matrix for frontend testing workflow

Done following https://github.com/browser-actions/examples/blob/master/.github/workflows/build.yml
  • Loading branch information
RubenRBS committed Nov 9, 2022
1 parent e962c3e commit d41eb5c
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/test-frontend.yml
Expand Up @@ -5,16 +5,26 @@ jobs:
cypress-run:
if: github.repository_owner == 'compiler-explorer'
runs-on: ubuntu-20.04
strategy:
matrix:
browser: ['chrome', 'firefox']
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Clean
run: make clean
- name: Install prerequisites
run: make prereqs
- name: Setup Firefox
uses: browser-actions/setup-firefox@latest
if: matrix.browser == 'firefox'
- name: Setup Chrome
uses: browser-actions/setup-chrome@latest
if: matrix.browser == 'chrome'
- name: Cypress run
uses: cypress-io/github-action@v2
with:
start: npm run dev
wait-on: 'http://localhost:10240'
config: screenshotOnRunFailure=false,video=false
browser: ${{ matrix.browser }}

0 comments on commit d41eb5c

Please sign in to comment.