VR-263: and another attempt in getting screenshot conparison. #1438
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 (NPM) | |
on: | |
push: | |
branches-ignore: ['main'] | |
jobs: | |
static-checks-npm: | |
uses: digicatapult/shared-workflows/.github/workflows/static-checks-npm.yml@main | |
with: | |
matrix_commands: '["lint", "depcheck", "check", "xss-scan"]' | |
tests-npm: | |
uses: digicatapult/shared-workflows/.github/workflows/tests-npm.yml@main | |
with: | |
npm_build_command: 'npm run tsoa:build' | |
pre_test_command: 'npm run db:migrate' | |
docker_compose_file: docker-compose.yml | |
e2e-tests-npm: | |
uses: digicatapult/shared-workflows/.github/workflows/tests-e2e-npm.yml@main | |
with: | |
docker_compose_file: docker-compose.e2e.yml | |
test_command: 'docker compose -f docker-compose.e2e.yml up --exit-code-from e2e-tests --abort-on-container-exit --quiet-pull' | |
permissions: | |
contents: write | |
secrets: inherit | |
build-docker: | |
uses: digicatapult/shared-workflows/.github/workflows/build-docker.yml@main | |
permissions: | |
packages: write | |
contents: write |