mirror of
https://github.com/compiler-explorer/compiler-explorer.git
synced 2026-12-02 06:49:47 -06:00
31 lines
875 B
YAML
31 lines
875 B
YAML
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'
|
|
config: screenshotOnRunFailure=false,video=false
|
|
browser: ${{ matrix.browser }}
|