Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update(ci): run automated tests on docker container #665

Merged
merged 1 commit into from
Oct 3, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 5 additions & 10 deletions .github/workflows/automated-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ on:
jobs:
playwright-run:
timeout-minutes: 60
runs-on: macos-latest
runs-on: ubuntu-latest
container:
image: mcr.microsoft.com/playwright:v1.47.2-jammy
permissions:
checks: write
pull-requests: write
Expand All @@ -41,18 +43,11 @@ jobs:

- name: Install dependencies for Testing Repo πŸ“¦
working-directory: automated-tests
run: npm install

- name: Install Playwright Browsers
working-directory: automated-tests
run: npx playwright install --with-deps

- name: Run server for Uplink Web
run: npm run dev &
run: npm ci

- name: Run Playwright tests
working-directory: automated-tests
run: PLAYWRIGHT_JSON_OUTPUT_NAME=report.json npx playwright test
run: PLAYWRIGHT_JSON_OUTPUT_NAME=report.json npx playwright test -c playwright.ci.config.ts

- uses: daun/playwright-report-summary@v3
if: always()
Expand Down
Loading