Time systems plugin #3738
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: Test | |
on: | |
pull_request: | |
branches: | |
- develop | |
- dev-[0-9]+.[0-9]+.[0-9]+ | |
push: | |
branches: | |
- develop | |
tags: | |
- v* | |
workflow_dispatch: | |
workflow_call: | |
inputs: | |
env: | |
description: 'Github Actions environment that the test workflow should run under' | |
type: string | |
required: false | |
env: | |
AERIE_PASSWORD: '${{secrets.AERIE_PASSWORD}}' | |
AERIE_USERNAME: '${{secrets.AERIE_USERNAME}}' | |
HASURA_GRAPHQL_ADMIN_SECRET: '${{secrets.HASURA_GRAPHQL_ADMIN_SECRET}}' | |
HASURA_GRAPHQL_JWT_SECRET: '${{secrets.HASURA_GRAPHQL_JWT_SECRET}}' | |
POSTGRES_USER: '${{secrets.POSTGRES_USER}}' | |
POSTGRES_PASSWORD: '${{secrets.POSTGRES_PASSWORD}}' | |
GATEWAY_USERNAME: '${{secrets.GATEWAY_USERNAME}}' | |
GATEWAY_PASSWORD: '${{secrets.GATEWAY_PASSWORD}}' | |
MERLIN_USERNAME: '${{secrets.MERLIN_USERNAME}}' | |
MERLIN_PASSWORD: '${{secrets.MERLIN_PASSWORD}}' | |
SCHEDULER_USERNAME: '${{secrets.SCHEDULER_USERNAME}}' | |
SCHEDULER_PASSWORD: '${{secrets.SCHEDULER_PASSWORD}}' | |
SEQUENCING_USERNAME: '${{secrets.SEQUENCING_USERNAME}}' | |
SEQUENCING_PASSWORD: '${{secrets.SEQUENCING_PASSWORD}}' | |
jobs: | |
unit-test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repo (UI) | |
uses: actions/checkout@v4 | |
- name: Setup Node (UI) | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 'lts/*' | |
cache: npm | |
- name: Install Dependencies (UI) | |
run: npm ci | |
- name: Build (UI) | |
run: npm run build | |
- name: Test (unit) | |
run: npm run test:unit:coverage | |
- name: Upload Results | |
if: always() | |
uses: actions/upload-artifact@v4 | |
with: | |
name: Unit Test Results | |
path: | | |
**/unit-test-results | |
e2e-test: | |
runs-on: ubuntu-latest | |
environment: ${{ inputs.env || 'test-workflow' }} | |
steps: | |
- name: Checkout Repo (UI) | |
uses: actions/checkout@v4 | |
- name: Setup Node (UI) | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 'lts/*' | |
cache: npm | |
- name: Start Services (Aerie) | |
run: | | |
docker compose -f docker-compose-test.yml up -d | |
docker images | |
docker ps -a | |
- name: Install Dependencies (UI) | |
run: npm ci | |
- name: Build (UI) | |
run: npm run build | |
- name: Install Playwright Dependencies (Test - e2e) | |
run: npx playwright install chromium --with-deps | |
- name: Test (e2e) | |
run: npm run test:e2e | |
- name: Upload Results | |
if: always() | |
uses: actions/upload-artifact@v4 | |
with: | |
name: E2E Test Results | |
path: | | |
**/e2e-test-results | |
- name: Print Logs for Services (Aerie) | |
if: always() | |
run: docker compose -f docker-compose-test.yml logs -t | |
- name: Stop Services (Aerie) | |
if: always() | |
run: | | |
docker ps -a | |
docker compose -f docker-compose-test.yml down | |
docker ps -a | |
- name: Prune Volumes (Aerie) | |
if: always() | |
run: docker volume prune --force |