diff --git a/.gitea/workflows/playwright.yaml b/.gitea/workflows/playwright.yaml index 247ba72..7572553 100644 --- a/.gitea/workflows/playwright.yaml +++ b/.gitea/workflows/playwright.yaml @@ -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 \ No newline at end of file + # V tomto obrazu už prohlížeče JSOU, není třeba je instalovat + run: | + npx playwright test --project=chromium --project=firefox \ No newline at end of file