Skip to content

chore(dependabot): update npm packages too #1127

chore(dependabot): update npm packages too

chore(dependabot): update npm packages too #1127

Workflow file for this run

name: End-to-end tests
on:
push:
branches:
- "**"
- "!master"
env:
ACCESS_LOG_PATH:
PGUSER: api-auth
PGPASSWORD: api-auth
PGDATABASE: api-auth-test
PGHOST: 127.0.0.1
PGPORT: 5432
DATABASE_URL: postgres://api-auth:[email protected]:5432/api-auth-test
BREVO_API_KEY: ${{ secrets.BREVO_API_KEY }}
MONCOMPTEPRO_HOST: http://172.18.0.1:3000
CYPRESS_BASE_URL: http://172.18.0.1:3000
DO_NOT_SEND_MAIL: "False"
DO_NOT_CHECK_EMAIL_DELIVERABILITY: "True"
CONSIDER_ALL_EMAIL_DOMAINS_AS_NON_FREE: "True"
DO_NOT_RATE_LIMIT: "True"
DO_NOT_USE_ANNUAIRE_EMAILS: "True"
DO_NOT_AUTHENTICATE_BROWSER: "True"
SESSION_COOKIE_SECRET: secret
DEBOUNCE_API_KEY:
SENTRY_DSN:
INSEE_CONSUMER_KEY: ${{ secrets.INSEE_CONSUMER_KEY }}
INSEE_CONSUMER_SECRET: ${{ secrets.INSEE_CONSUMER_SECRET }}
CYPRESS_MAILSLURP_API_KEY: ${{ secrets.MAILSLURP_API_KEY }}
SECURE_COOKIES: "false"
ZAMMAD_URL: ${{ secrets.ZAMMAD_URL }}
ZAMMAD_TOKEN: ${{ secrets.ZAMMAD_TOKEN }}
MODERATION_TAG: "github-action-e2e-test"
JWKS: '{"keys":[{"crv":"P-256","x":"UtmbpHb1aHibmvEQJ2KlIzNro4tGfyMiBIVmO92YX7Q","y":"YsRG_NMtLOqvA6S9zq5r7M9Y-Cgo4YwKvH3xXyvFE2E","d":"taURynSwshCfxEWs6z2_Xz-ocheg-6ePaU87cjy572Y","kty":"EC","kid":"GCirOyeBc0rlWhcbMnwe9FUadPk6ToJlOq3yvxvkKlE","use":"enc"},{"crv":"P-256","x":"2SSoeci15SnMM6wwxvNwzp_xjVTwgEALOY1NvTBbdqs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wrBPg0ShcfKMnkQI3uaaDOJDkEyHJz4eILlETfiFEBgNRo4xYjPU4Aa2w81poYms4RhYdNwpB4DT5OXT8kL_KRykmhBLWaxafezyIRxdNs97h7eU1Vk_05C3vbG7fqASO6vv7HdHnB_ityGRDUnLbwKfDasU","qi":"QomRmnqrW3k8cV8MIefgmKZMGDGHRC44bFk9B20YR15_XHcMimi7o9rjUE7BY-RO30RsPUiQqB_vkpKvQZILOuPmIQhElcgmguKqPNwprVMgx-krUQ1Khuh3tgzxhBgazXzPcKmx8JBbCopP_UwNiCpPcdm74VFcZ-OswmqQU08","kty":"RSA","kid":"lFWqEBQbScnjO5OzUbvkPp0rmjGy17bmzZOqUbWkQMo","use":"sig"}]}'
jobs:
test:
strategy:
matrix:
e2e_test:
- join_collectivite_territoriale_official_contact_domain
- join_org_with_verified_domain
- join_org_with_trackdechets_domain
- join_with_code_sent_to_official_contact_email
- join_with_code_sent_to_official_educ_nat_contact_email
- join_with_official_contact_email
- join_with_sponsorship
- signin_from_agentconnect_client
- signin_from_legacy_client
- signin_from_standard_client
- signin_with_email_verification_renewal
- signin_with_magic_link
- signup_entreprise_unipersonnelle
- redirect_after_session_expiration
- reset_password
- join_must_confirm
runs-on: ubuntu-20.04
services:
moncomptepro-standard-client:
image: ghcr.io/betagouv/moncomptepro-test-client
ports:
- 4000:3000
env:
SITE_TITLE: moncomptepro-standard-client
HOST: http://localhost:4000
MCP_CLIENT_ID: standard_client_id
MCP_CLIENT_SECRET: standard_client_secret
MCP_PROVIDER: ${{ env.MONCOMPTEPRO_HOST }}
MCP_SCOPES: openid email profile organization
STYLESHEET_URL: ""
moncomptepro-agentconnect-client:
image: ghcr.io/betagouv/moncomptepro-test-client
ports:
- 4001:3000
env:
SITE_TITLE: moncomptepro-agentconnect-client
HOST: http://localhost:4001
MCP_CLIENT_ID: agentconnect_client_id
MCP_CLIENT_SECRET: agentconnect_client_secret
MCP_PROVIDER: ${{ env.MONCOMPTEPRO_HOST }}
MCP_SCOPES: openid uid given_name usual_name email siren siret organizational_unit belonging_population phone chorusdt
MCP_ID_TOKEN_SIGNED_RESPONSE_ALG: ES256
MCP_USERINFO_SIGNED_RESPONSE_ALG: ES256
STYLESHEET_URL: ""
LOGIN_HINT: [email protected]
moncomptepro-legacy-client:
image: ghcr.io/betagouv/moncomptepro-test-client
ports:
- 4002:3000
env:
SITE_TITLE: moncomptepro-legacy-client
HOST: http://localhost:4002
MCP_CLIENT_ID: legacy_client_id
MCP_CLIENT_SECRET: legacy_client_secret
MCP_PROVIDER: ${{ env.MONCOMPTEPRO_HOST }}
MCP_SCOPES: openid email profile phone organizations
STYLESHEET_URL: ""
redis:
image: redis:7.0
ports:
- 6379:6379
postgres:
image: postgres:14.1
env:
POSTGRES_USER: ${{ env.PGUSER }}
POSTGRES_PASSWORD: ${{ env.PGPASSWORD }}
POSTGRES_DB: ${{ env.PGDATABASE }}
ports:
- 5432:5432
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
cache: "npm"
node-version-file: package.json
- run: npm ci --include=dev
- run: npm run migrate up
- run: npm run fixtures:load-ci -- cypress/fixtures/${{ matrix.e2e_test }}.sql
- run: npm run update-organization-info -- 2000
- name: Dotenv Action
uses: falti/[email protected]
with:
path: cypress/env/${{ matrix.e2e_test }}.conf
export-variables: true
keys-case: bypass
- name: Cypress run
uses: cypress-io/[email protected]
with:
wait-on: ${{ env.MONCOMPTEPRO_HOST }}/users/start-sign-in
build: npm run build
start: npm start
install: false
spec: cypress/e2e/${{ matrix.e2e_test }}.cy.js
env:
NODE_ENV: production
- run: npm run delete-database
# Store tests runs in case of failure
- uses: actions/upload-artifact@v4
if: failure()
with:
name: cypress-screenshots
path: cypress/screenshots
- uses: actions/upload-artifact@v4
if: failure()
with:
name: cypress-videos
path: cypress/videos