Only running one browser for now. #30
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 test suite | |
on: [push] | |
env: | |
GITHUB_TOKEN: ${{ github.token }} | |
jobs: | |
e2e-test-run: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 18 | |
- name: Run Docker Compose | |
run: | | |
docker-compose up -d | |
- name: Wait for mysql | |
uses: smurfpandey/wait-for-it@main | |
with: | |
host: localhost | |
port: 3306 | |
timeout: 60 | |
- name: Install dependencies | |
run: | | |
cd ci | |
npm ci | |
- name: Install Playwright Browsers | |
run: | | |
cd ci | |
npx playwright install --with-deps | |
- name: Run Playwright tests | |
run: | | |
cd ci | |
npx playwright test | |
- uses: actions/upload-artifact@v3 | |
if: always() | |
with: | |
name: playwright-report | |
path: playwright-report/ | |
retention-days: 30 |