Fix linting issues #87
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: | |
push: | |
branches: ["main"] | |
jobs: | |
tests: | |
name: "E2E Tests" | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: ./e2e | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 18 | |
- name: Start application | |
run: docker compose -f docker-compose.test.yml up -d --wait --build --force-recreate | |
## | |
## Playwright E2E Browser Tests | |
## | |
- name: Install Playwright test dependencies | |
run: | | |
cd browser | |
npm ci | |
npx playwright install --with-deps | |
- name: Run Playwright E2E tests | |
run: | | |
cd browser | |
npx playwright test --trace on | |
- name: Upload Playwright Test Results | |
uses: actions/upload-artifact@v3 | |
with: | |
name: playwright-test-results | |
path: e2e/browser/playwright-report | |
retention-days: 7 | |
## | |
## Jest API Tests | |
## | |
- name: Install Jest API test dependencies | |
run: | | |
cd api | |
npm ci | |
cd ../../frontend | |
npm ci | |
- name: Run Jest API tests | |
run: | | |
cd api | |
npm test |