This repository was archived by the owner on Aug 13, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
This repository was archived by the owner on Aug 13, 2023. It is now read-only.
Re-introduce End to End Tests #34
Copy link
Copy link
Open
Labels
acceptedThe issue is accepted and PRs are welcomeThe issue is accepted and PRs are welcomeenhancementNew feature or requestNew feature or request
Description
What Functionality Are You Suggesting?
Due to issues with running end to end tests on forked repositories, we removed them from CI. However, end to end tests are a very powerful safety net for your codebase so it would be ideal to add them back. We should explore ideas on how to best do this.
Old CI Code
test_e2e:
name: End to End Tests
runs-on: ubuntu-latest
container: node:16.14.2-alpine3.15
env:
DB_PASS: ruv2cyHT4H78BVzK7b4DnBAHJR8dG4fG
DB_USER: admin
DB_NAME: codesupport-api
services:
postgres:
image: postgres:12
env:
POSTGRES_PASSWORD: $DB_PASS
POSTGRES_USER: $DB_USER
POSTGRES_DB: $DB_NAME
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 5432:5432
steps:
- uses: actions/checkout@v2
- name: Runs End to End Tests
env:
DATABASE_HOST: postgres
DATABASE_PASS: $DB_PASS
DATABASE_USER: $DB_USER
DATABASE_NAME: $DB_NAME
AUTH0_ISSUER_URL: ${{ secrets.AUTH0_ISSUER_URL }}
AUTH0_AUDIENCE: http://localhost:8080
AUTH0_DOMAIN: ${{ secrets.AUTH0_DOMAIN }}
AUTH0_CLIENT_ID: ${{ secrets.AUTH0_CLIENT_ID }}
AUTH0_CLIENT_SECRET: ${{ secrets.AUTH0_CLIENT_SECRET }}
run: |
npm ci
npm run migration:run
npm run seed:run
npm run test:e2e
Why Will This Benefit The Community?
Allow us to quickly and easily catch bugs when making changes to the source code.
Metadata
Metadata
Assignees
Labels
acceptedThe issue is accepted and PRs are welcomeThe issue is accepted and PRs are welcomeenhancementNew feature or requestNew feature or request