@@ -1,10 +1,20 @@
|
||||
name: Playwright Tests
|
||||
on: [push, pull_request]
|
||||
|
||||
jobs:
|
||||
test:
|
||||
runs-on: playwright # Tento label v Runneru zajistí obraz mcr.microsoft.com/playwright
|
||||
# Použijeme přesně ten label, který jsme definovali v Portaineru
|
||||
runs-on: playwright
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Install dependencies
|
||||
run: npm install
|
||||
# npx playwright install už není potřeba, prohlížeče v tom obrazu jsou!
|
||||
run: |
|
||||
npm install
|
||||
|
||||
- name: Run Playwright tests
|
||||
run: npx playwright test --project=chromium
|
||||
# V tomto obrazu už prohlížeče JSOU, není třeba je instalovat
|
||||
run: |
|
||||
npx playwright test --project=chromium --project=firefox
|
||||
Reference in New Issue
Block a user