You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 13, 2023. It is now read-only.
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.
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:e2eWhy Will This Benefit The Community?
Allow us to quickly and easily catch bugs when making changes to the source code.