fix: Testing workflow #9
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: E2E Tests | |
on: | |
pull_request: | |
types: [opened, synchronize, reopened] | |
jobs: | |
test: | |
name: Test | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [18.x] | |
steps: | |
- name: Checkout code | |
uses: actions/[email protected] | |
- name: Install Node.js ${{ matrix.node-version }} | |
uses: actions/[email protected] | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Run Docker | |
run: docker compose up --build | |
- name: Wait | |
run: sleep 81s | |
- name: Install dependencies | |
run: yarn install | |
- name: Run tests | |
run: yarn run test:e2e | |
- name: Setup tmate session | |
if: success() || failure() | |
uses: mxschmitt/action-tmate@v3 | |
- name: Clean up Docker containers | |
if: always() | |
run: docker compose down |