-
Notifications
You must be signed in to change notification settings - Fork 40
55 lines (52 loc) · 1.62 KB
/
graph-pixi-tests.yml
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
name: Regression Label
on:
push:
jobs:
re_run:
runs-on: ubuntu-latest
permissions:
actions: write
steps:
- name: Run Cypress tests for graph-pixi
run: npm run cypress:run -- --spec "cypress/e2e/pixi-interaction/*"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# set repository so we don't have to check out all of the code
GH_REPO: ${{github.repository}}
cypress:
runs-on: ubuntu-latest
strategy:
# when one test fails, DO NOT cancel the other
# containers, because this will kill Cypress processes
# leaving the Dashboard hanging ...
# https://github.com/cypress-io/github-action/issues/48
fail-fast: false
steps:
- uses: browser-actions/setup-chrome@v1
with:
chrome-version: stable
- uses: snow-actions/sparse-checkout@v1.2.0
with:
patterns: v3
- name: Restore Webpack Cache
id: restore-webpack-cache
uses: actions/cache/restore@v4
with:
path: v3/.cache/webpack/
key: webpack-dev-build-${{ hashFiles('v3/webpack.config.js') }}
- uses: cypress-io/github-action@v6
with:
working-directory: v3
start: npm start
wait-on: 'http://localhost:8080'
wait-on-timeout: 300
record: ${{ !!secrets.CYPRESS_RECORD_KEY }}
browser: chrome
spec: cypress/e2e/pixi-interaction/**/*.ts
group: 'Pixi Interaction Tests'
env:
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CODE_COVERAGE: true
CYPRESS_coverage: true
SKIP_ESLINT: true