diff --git a/.gitea/workflows/playwright.yaml b/.gitea/workflows/playwright.yaml index 5f674e1..abf98f3 100644 --- a/.gitea/workflows/playwright.yaml +++ b/.gitea/workflows/playwright.yaml @@ -1,20 +1,16 @@ name: Playwright Tests on: [push, pull_request] - jobs: test: - # Použijeme přesně ten label, který jsme definovali v Portaineru - runs-on: ubuntu-latest - + runs-on: ubuntu-latest # Runner musí mít tento label steps: - - name: Checkout code - uses: actions/checkout@v4 - + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: 18 - name: Install dependencies - run: | - npm install - - - name: Run Playwright tests --with-deps - # 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 + run: npm install + - name: Install Playwright Browsers + run: npx playwright install --with-deps + - name: Run Playwright tests + run: npx playwright test --project=chromium --project=firefox \ No newline at end of file