Run browser tests in a Docker container #2
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: Browser tests | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
jobs: | |
browser-tests: | |
runs-on: ubuntu-latest | |
timeout-minutes: 10 | |
steps: | |
- uses: actions/[email protected] | |
- run: cp .env.development.prod .env | |
- run: docker compose run ui npm install | |
- run: docker compose --profile browser-tests up -d | |
- run: docker compose exec -it ui npm run test:e2e |