-
Notifications
You must be signed in to change notification settings - Fork 455
49 lines (38 loc) · 1.08 KB
/
smoke.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
name: Smoke tests
on:
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
e2e:
runs-on: ubuntu-20.04
name: Cypress Smoke tests
strategy:
fail-fast: false
matrix:
containers: [1, 2, 3, 4, 5]
steps:
- uses: actions/checkout@v3
- uses: browser-actions/setup-chrome@v1
- uses: ./.github/workflows/yarn
- name: Install Cypress
run: |
./node_modules/.bin/cypress install
- uses: ./.github/workflows/build
with:
secrets: ${{ toJSON(secrets) }}
e2e_mnemonic: ${{ secrets.NEXT_PUBLIC_CYPRESS_MNEMONIC }}
- name: Serve
run: yarn serve &
- uses: cypress-io/github-action@v4
with:
parallel: true
spec: cypress/e2e/smoke/*.cy.js
browser: chrome
record: true
config: baseUrl=http://localhost:8080
group: 'Smoke tests'
env:
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}