@@ -1,10 +1,20 @@
|
|||||||
|
name: Playwright Tests
|
||||||
|
on: [push, pull_request]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
test:
|
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:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- name: Checkout code
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: npm install
|
run: |
|
||||||
# npx playwright install už není potřeba, prohlížeče v tom obrazu jsou!
|
npm install
|
||||||
|
|
||||||
- name: Run Playwright tests
|
- 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