-
Notifications
You must be signed in to change notification settings - Fork 2
63 lines (50 loc) · 1.39 KB
/
test.yaml
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: Tests
on:
push:
branches:
- main
pull_request:
jobs:
tests:
strategy:
fail-fast: false # continue other tests if one test in matrix fails
matrix:
node-version: [18.x]
os: [ubuntu-latest]
name: Test kit on Node v${{ matrix.node-version }} (${{ matrix.os }})
runs-on: ${{ matrix.os }}
timeout-minutes: 25
defaults:
run:
shell: bash
env:
CYPRESS_CACHE_FOLDER: ~/.cache/Cypress
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Use Node v${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
cache: 'npm'
node-version: ${{ matrix.node-version }}
- name: Cache Cypress binary
uses: actions/cache@v3
with:
path: ~/.cache/Cypress
key: cypress-${{ runner.os }}-cypress-${{ hashFiles('**/package.json') }}
- run: npm install -g npm@8
- run: npm ci
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- run: npm test
env:
CI: true
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- run: npm run test:acceptance
env:
CYPRESS_REQUEST_TIMEOUT: 20000
CYPRESS_DEFAULT_COMMAND_TIMEOUT: 40000
CYPRESS_PAGE_LOAD_TIMEOUT: 120000
CYPRESS_RETRIES: 3
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}