Add E2E tests to workflow #12
Workflow file for this run
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: End-to-end tests | |
on: | |
push: | |
branches: | |
- main | |
- develop | |
pull_request: | |
types: [opened, synchronize, ready_for_review] | |
env: | |
# a list of apps to build and publish on releases | |
APP_NAMES: datahub-e2e,metadata-editor-e2e | |
jobs: | |
cypress-run: | |
name: Cypress test | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Build the backend | |
run: sudo docker-compose -f support-services/docker-compose.yml up -d init | |
- name: install dependencies | |
run: | | |
npm ci | |
- name: E2E tests | |
run: npx nx run-many --projects=${{ env.APP_NAMES }} --target=e2e |