Bump the app-scratch-production group across 1 directory with 33 updates #137
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: Tests | |
on: push | |
jobs: | |
# Label of the runner job | |
tests: | |
# You must use a Linux environment when using service containers or container jobs | |
runs-on: ubuntu-latest | |
# Service containers to run with `runner-job` | |
services: | |
# Label used to access the service container | |
postgres: | |
# Docker Hub image | |
image: postgres | |
# Provide the password for postgres | |
env: | |
POSTGRES_PASSWORD: postgres | |
# Set health checks to wait until postgres has started | |
options: >- | |
--health-cmd pg_isready | |
--health-interval 10s | |
--health-timeout 5s | |
--health-retries 5 | |
ports: | |
# Maps TCP port 5433 on the host to Postgres | |
- 5433:5432 | |
env: | |
DATABASE_URL: "postgresql://postgres:postgres@localhost:5433/collimator?schema=public" | |
steps: | |
- name: Enable Corepack | |
run: corepack enable | |
- name: Check out repository code | |
uses: actions/checkout@v4 | |
with: | |
submodules: 'true' | |
lfs: 'true' | |
fetch-depth: 0 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 22 | |
- name: Install backend dependencies | |
working-directory: ./backend | |
run: yarn install | |
- name: Install frontend dependencies | |
working-directory: ./frontend | |
run: yarn install | |
- name: Install scratch app dependencies | |
working-directory: ./apps/scratch | |
run: yarn install | |
- name: Install playwright dependencies | |
working-directory: ./apps/scratch | |
run: yarn playwright install --with-deps | |
- name: Lint backend | |
working-directory: ./backend | |
run: yarn lint | |
- name: Lint frontend | |
working-directory: ./frontend | |
run: yarn lint | |
- name: Lint scratch app | |
working-directory: ./apps/scratch | |
run: yarn lint | |
- name: Build backend | |
working-directory: ./backend | |
run: yarn build | |
- name: Build frontend | |
working-directory: ./frontend | |
run: yarn build | |
- name: Prepare scratch app build | |
working-directory: ./apps/scratch | |
run: yarn prepublish | |
- name: Build scratch app | |
working-directory: ./apps/scratch | |
run: yarn build | |
- name: Prepare test database | |
working-directory: ./backend | |
run: yarn prisma migrate deploy | |
- name: Test backend | |
working-directory: ./backend | |
run: yarn test:cov | |
- name: End-to-end Test backend | |
working-directory: ./backend | |
run: yarn test:e2e:cov | |
- name: Test frontend | |
working-directory: ./frontend | |
run: yarn test:cov | |
- name: Test scratch app | |
working-directory: ./apps/scratch | |
run: yarn test | |
- name: SonarCloud Scan | |
uses: SonarSource/sonarcloud-github-action@master | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any | |
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} |