-
Notifications
You must be signed in to change notification settings - Fork 22
51 lines (49 loc) · 1.68 KB
/
e2e-heavy.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
name: Tests e2e (heavy + light)
on:
workflow_dispatch:
schedule:
- cron: "0 22 * * *" # each day at 22:00
concurrency:
cancel-in-progress: true
group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.event.ref }}
jobs:
e2e:
name: End-to-end testing
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
ref: master
- name: Set up Node
uses: actions/setup-node@v4
with:
node-version: 20
cache: "yarn"
- name: Install dependencies
run: |
yarn install --immutable
- name: Run test e2e
run: |
TEST_BASEURL=https://code-du-travail-numerique-preprod.ovh.fabrique.social.gouv.fr TEST_MODE=heavy-and-light yarn test:e2e
- name: Archive generated screenshots
if: failure()
uses: actions/upload-artifact@v4
with:
name: e2e-screenshots
path: |
packages/code-du-travail-frontend/cypress/screenshots
- name: Send message to mattermost when done
uses: mattermost/action-mattermost-notify@master
if: always()
with:
MATTERMOST_WEBHOOK_URL: ${{ secrets.MATTERMOST_WEBHOOK_URL }}
TEXT: |-
Les tests automatiques e2e sont terminés: **${{ job.status }}** ([logs](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }})).
- name: Ping the team when failed
uses: mattermost/action-mattermost-notify@master
if: failure()
with:
MATTERMOST_WEBHOOK_URL: ${{ secrets.MATTERMOST_WEBHOOK_URL }}
TEXT: |-
Tests e2e (heavy + light) en échec