blob: c02735bd9339936a8c6cb55ba0bfb9d81b5d720a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
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 }}
|