forked from codysherman/Scroll-to-Top-Button-Extension
-
-
Notifications
You must be signed in to change notification settings - Fork 12
44 lines (37 loc) · 1.12 KB
/
test.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
name: End-to-end tests
on: [push, pull_request]
jobs:
test:
name: Test on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
# Run multiple copies of the current job in parallel
containers: [1, 2, 3, 4, 5, 6, 7]
steps:
- name: Checkout
uses: actions/checkout@v1
# Install dependencies, cache them correctly, build, and run all Cypress tests
- name: Cypress run
uses: cypress-io/github-action@v1
with:
build: yarn build
browser: chrome
record: true
parallel: true
group: Parallel tests in Chrome on ${{ matrix.os }}
env:
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
- name: Store screenshots of failed tests
uses: actions/upload-artifact@v1
if: failure()
with:
name: cypress-screenshots
path: cypress/screenshots
- name: Store videos of test run
uses: actions/upload-artifact@v1
if: always()
with:
name: cypress-videos
path: cypress/videos