This repository has been archived by the owner on Mar 9, 2024. It is now read-only.
🔄 synced file(s) with neurobagel/workflows #504
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 | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
e2e-test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Set up node env | |
uses: actions/setup-node@v4.0.1 | |
with: | |
node-version: 16 | |
- name: Create .env file | |
run: | | |
echo -e "API_QUERY_URL=${{ vars.API_QUERY_URL }}\nIS_FEDERATION_API=${{ vars.IS_FEDERATION_API }}" > .env | |
- name: Run end to end tests | |
uses: cypress-io/github-action@v6 | |
with: | |
build: npm run generate | |
start: npm start | |
component: false | |