Skip to content

chore: add option to record tests with cypress to generate demo videos #856

chore: add option to record tests with cypress to generate demo videos

chore: add option to record tests with cypress to generate demo videos #856

Workflow file for this run

name: Fixtures tests
on:
push:
branches:
- "**"
- "!master"
env:
ACCESS_LOG_PATH:
PGUSER: api-auth
PGPASSWORD: api-auth
PGDATABASE: api-auth
PGHOST: 127.0.0.1
PGPORT: 5432
INSEE_CONSUMER_KEY: ${{ secrets.INSEE_CONSUMER_KEY }}
INSEE_CONSUMER_SECRET: ${{ secrets.INSEE_CONSUMER_SECRET }}
jobs:
test:
runs-on: ubuntu-22.04
services:
postgres:
image: postgres:12.12
env:
POSTGRES_USER: ${{ env.PGUSER }}
POSTGRES_PASSWORD: ${{ env.PGPASSWORD }}
POSTGRES_DB: ${{ env.PGDATABASE }}
ports:
- 5432:5432
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
cache: "npm"
node-version-file: package.json
- run: npm ci --omit=dev
- run: npm run fixtures:load
env:
DATABASE_URL: postgres://${{ env.PGUSER }}:${{ env.PGPASSWORD }}@127.0.0.1:${{ env.PGPORT }}/${{ env.PGDATABASE }}