Skip to content

COM-3863: add trainer in trainer-mission-info-modal #1164

COM-3863: add trainer in trainer-mission-info-modal

COM-3863: add trainer in trainer-mission-info-modal #1164

Workflow file for this run

name: End2end tests
on:
- pull_request
jobs:
build:
runs-on: ubuntu-latest
services:
mongo:
image: mongo:6.0
ports:
- 27017:27017
steps:
# Check out the repository
- id: checkout_api
continue-on-error: true
uses: actions/checkout@v3
with:
repository: 'sophiemoustard/compani-api'
ref: ${{ github.event.pull_request.head.ref }}
path: 'api'
- if: ${{ steps.checkout_api.outcome != 'success' }}
uses: actions/checkout@v3
with:
repository: 'sophiemoustard/compani-api'
ref: dev
path: 'api'
- uses: actions/setup-node@v3
with:
node-version: 20.18.0
- run: cd api && yarn install
env:
DETACHMENT_ALLOWED_COMPANY_IDS : ${{ secrets.DETACHMENT_ALLOWED_COMPANY_IDS }}
SINGLE_COURSES_SUBPROGRAM_IDS : ${{ secrets.SINGLE_COURSES_SUBPROGRAM_IDS }}
- uses: actions/checkout@v3
with:
path: 'webapp'
- run: cd webapp && npm ci
# Install NPM dependencies, cache them correctly
# and run all Cypress tests
- name: Cypress run
uses: cypress-io/github-action@v5
with:
working-directory: ./webapp
start: npm run start:workflow:api, npm run start:workflow:webapp
wait-on: 'http://localhost:8080'
env:
API_HOSTNAME: ${{ secrets.API_HOSTNAME }}
TOKEN_SECRET: ${{ secrets.TOKEN_SECRET }}
DETACHMENT_ALLOWED_COMPANY_IDS : ${{ secrets.DETACHMENT_ALLOWED_COMPANY_IDS }}
SINGLE_COURSES_SUBPROGRAM_IDS : ${{ secrets.SINGLE_COURSES_SUBPROGRAM_IDS }}