-
Notifications
You must be signed in to change notification settings - Fork 41
63 lines (61 loc) · 1.93 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
56
57
58
59
60
61
62
63
name: Graph Pixi Tests
on:
push:
paths:
- 'cypress/e2e/pixi-interaction/**'
- '.github/workflows/graph-pixi-tests.yml'
jobs:
cypress:
name: Run Cypress Pixi Tests
runs-on: ubuntu-latest
strategy:
fail-fast: false
steps:
- uses: snow-actions/sparse-checkout@v1.2.0
with:
patterns: |
v3
- uses: actions/setup-node@v4
with:
node-version: 18
cache: 'npm'
cache-dependency-path: v3/package-lock.json
- name: Install Dependencies
working-directory: v3
run: npm ci
- uses: browser-actions/setup-chrome@v1
with:
chrome-version: stable
- 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
- name: Save Webpack Cache
uses: actions/cache/save@v4
if: github.ref_name == 'main' || steps.restore-webpack-cache.outputs.cache-hit != 'true'
with:
path: v3/.cache/webpack/
key: ${{ steps.restore-webpack-cache.outputs.cache-primary-key }}
- name: Upload Cypress Coverage to Codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
flags: cypress