Skip to content

Tests e2e (heavy + light) #96

Tests e2e (heavy + light)

Tests e2e (heavy + light) #96

Workflow file for this run

name: Tests e2e (heavy + light)
on:
workflow_dispatch:
schedule:
- cron: "0 0 * * *"
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
- 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 ALL_TEST=true yarn test:e2e
- name: Archive generated screenshots
if: failure()
uses: actions/upload-artifact@v3
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 }}
PAYLOAD: |-
{
"text": "Les tests automatiques e2e sont terminés: **${{ job.status }}**. Détails : ${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 }}
PAYLOAD: |-
{
"text": "Tests e2e en échec @max @victorz @carolinebda @martial :scream:",
}