feat(admin): added "Comptes collaborateurs" page to certification aut… #4521
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Cypress tests | |
on: [ push ] | |
env: | |
FRAMER_WEBSITE_URL: https://reva.incubateur.net | |
REACT_APP_API_GRAPHQL: https://reva.incubateur.net/api/graphql | |
REACT_APP_KEYCLOAK_REALM: reva-app | |
REACT_APP_KEYCLOAK_URL: https://auth.reva.incubateur.net/ | |
REACT_APP_KEYCLOAK_CLIENT_ID: reva-app | |
# On la definie uniquement pour que le serveur start... | |
DATABASE_URL: postgresql://reva:password@localhost:5444/reva?schema=public | |
NEXT_PUBLIC_WEBSITE_API_GRAPHQL: https://reva.incubateur.net/api/graphql | |
NEXT_PUBLIC_FEATURE_CANDIDATE_ORIENTATION: true | |
NEXT_PUBLIC_WEBSITE_STRAPI_BASE_URL: "https://strapi.vae.gouv.fr" | |
NEXT_PUBLIC_KEYCLOAK_REALM: reva | |
NEXT_PUBLIC_KEYCLOAK_URL: https://auth.reva.incubateur.net/ | |
NEXT_PUBLIC_KEYCLOAK_CLIENT_ID: reva-admin | |
jobs: | |
cypress-run-reva-app: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [ 20.x ] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
cache: "npm" | |
- run: npm install | |
- run: cd packages/reva-tests && npm install | |
- run: npm run build | |
# On met le NODE_ENV ici car si on le met en global, ca install pas les devDeps | |
- run: cd packages/reva-tests && NODE_ENV=production npm run test:ci | |
cypress-run-reva-website: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [ 20.x ] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
cache: "npm" | |
- run: cd packages/reva-website && npm install | |
- run: cd packages/reva-website && NODE_ENV=production npm run test:ci | |
cypress-run-reva-admin: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Use Node.js 20 | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 20.x | |
cache: "npm" | |
- run: npm install husky | |
- run: cd packages/reva-admin-react && npm install && npm run build | |
- run: cd packages/reva-admin-react && NODE_ENV=production npm run test:ci |