blob: c02735bd9339936a8c6cb55ba0bfb9d81b5d720a [file] [log] [blame] [raw]
name: Compiler Explorer Frontend Testing
on: [push]
jobs:
cypress-run:
if: github.repository_owner == 'compiler-explorer'
runs-on: ubuntu-20.04
strategy:
matrix:
browser: ['chrome']
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'
wait-on-timeout: 120
config: screenshotOnRunFailure=false,video=false
browser: ${{ matrix.browser }}