Skip to content

test(e2e): add raphael alpha test #3719

test(e2e): add raphael alpha test

test(e2e): add raphael alpha test #3719

Workflow file for this run

#
name: 🚥 E2E
# Automatically cancel in-progress actions on the same branch
concurrency:
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request_target' && github.head_ref || github.ref }}
cancel-in-progress: true
on:
push:
# pull_request:
workflow_dispatch:
jobs:
e2e:
runs-on: ubuntu-latest
defaults:
run:
working-directory: "e2e"
steps:
- name: Set artifact name
id: artifact
run: echo "name=$(echo '${{ matrix.e2e_test }}' | sed 's/\//-/g')" >> $GITHUB_OUTPUT
working-directory: "."
- name: Checkout
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 #v5.0.0
with:
node-version: "node"
- name: Set up Docker Compose
uses: docker/setup-compose-action@364cc21a5de5b1ee4a7f5f9d3fa374ce0ccde746 # v1.2.0
- name: Create mocked services
run: docker compose up --build --detach
working-directory: "."
- name: 🌭 Install bun
uses: oven-sh/setup-bun@735343b667d3e6f658f44d0eca948eb6282f2b76 # v2
- run: bun install --frozen-lockfile
working-directory: "."
- name: Wait for mocked services to be ready
run: |
docker compose ps
echo "Fake https://auth.agentconnect.gouv.fr"
curl -sSf -XGET http://127.0.0.1:6100/readyz
echo
echo "Fake https://entreprise.api.gouv.fr ready"
curl -sSf -XGET http://127.0.0.1:6200/readyz
echo
echo "Fake https://identite.proconnect.gouv.fr ready"
curl -sSf -XGET http://127.0.0.1:6300/readyz
working-directory: "."
- name: cypress-io/github-action needs package-lock.json
run: |
touch package-lock.json
- name: Cypress run
uses: cypress-io/github-action@b8ba51a856ba5f4c15cf39007636d4ab04f23e3c # v6.10.2
env:
CONSOLA_LEVEL: "2"
DEPLOY_ENV: "production"
NODE_ENV: "development"
with:
browser: chrome
build: bun run build
install-command: bun install --frozen-lockfile
spec: features/${{ matrix.e2e_test }}
start: bun run start
working-directory: e2e
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
if: failure()
with:
compression-level: 9
name: cypress-${{ steps.artifact.outputs.name }}-screenshots
path: e2e/cypress/screenshots
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
if: failure()
with:
compression-level: 9
name: cypress-${{ steps.artifact.outputs.name }}-videos
path: e2e/cypress/videos
strategy:
max-parallel: 6
matrix:
e2e_test:
- auth
- moderations/accept_blocking_moderation.feature
- moderations/reject_blocking_moderation.feature
- moderations/verify_domain.feature
- moderations/add_internal_member.feature
- moderations/add_external_member.feature
- moderations/manage_internal_domain.feature
- moderations/manage_external_domain.feature
- moderations/handle_big_organization.feature
- moderations/handle_duplicate_requests.feature
- moderations/reprocess_completed_moderation.feature
- moderations/select_verification_type.feature
- organizations
- users