Skip to content

fix CI: run docker compose commands directly in workflow instead of s… #13

fix CI: run docker compose commands directly in workflow instead of s…

fix CI: run docker compose commands directly in workflow instead of s… #13

Workflow file for this run

e2e-tests:

Check failure on line 1 in .github/workflows/ci.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/ci.yml

Invalid workflow file

(Line: 1, Col: 3): Unexpected value 'e2e-tests', (Line: 1, Col: 3): Required property is missing: jobs
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
- name: Install dependencies
run: |
cd mock-project
npm ci
- name: Install Playwright browsers
run: |
cd mock-project
npx playwright install chromium
- name: Start containers
run: |
cd mock-project
docker compose up --build -d
- name: Wait for API to be ready
run: |
sleep 10
curl --retry 5 --retry-delay 2 --retry-connrefused http://localhost:5000/health || true
- name: Run Playwright tests
run: |
cd mock-project
npx playwright test
- name: Stop containers
run: |
cd mock-project
docker compose down