forked from MTES-MCT/Dossier-Facile-Frontend
-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (38 loc) · 1.02 KB
/
e2e.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
name: E2E
on:
schedule:
- cron: '33 4 * * 1-5'
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
tests-on-preprod:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
- uses: bahmutov/npm-install@v1
with:
working-directory: e2e-tests
- name: Run e2e tests
uses: cypress-io/[email protected]
with:
project: ./e2e-tests
install: false
config-file: cypress-preprod.config.ts
browser: chrome
- name: Upload screenshot
uses: actions/upload-artifact@v3
if: failure()
with:
name: cypress-screenshots
path: e2e-tests/cypress/screenshots
retention-days: 1
- name: Upload video
uses: actions/upload-artifact@v3
if: failure()
with:
name: cypress-videos
path: e2e-tests/cypress/videos
retention-days: 1