Refactor: authenticate user feature integration tests #71
Workflow file for this run
This file contains hidden or 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: Docker Compose CI | |
| on: | |
| push: | |
| branches: [ "main", "fix/add-customised-error-codes" ] | |
| pull_request: | |
| branches: [ "main", "fix/add-customised-error-codes" ] | |
| workflow_dispatch: | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Start at the root | |
| uses: actions/checkout@v4 | |
| - name: Set up Docker Compose | |
| uses: docker/setup-compose-action@v1 | |
| - name: Start the Docker Compose Network | |
| run: docker compose up -d | |
| - name: Install the NPM dependencies | |
| run: docker compose run --user root node npm install | |
| - name: Compile JavaScript files from TypeScript | |
| run: docker compose run --user root node npm run typescript | |
| - name: Populate the PostgreSQL database from dump.sql | |
| run: docker compose exec -i db sh -c 'psql -U my-user -d authentication-api -X' < ./dump.sql | |
| - name: launch test-runner container with docker compose | |
| run: docker compose run --user root test-runner |