Skip to content

Merge pull request #8 from Romarionijim/feat/expand-global-timeout #56

Merge pull request #8 from Romarionijim/feat/expand-global-timeout

Merge pull request #8 from Romarionijim/feat/expand-global-timeout #56

Workflow file for this run

name: Run API tests
on:
push:
branches: main
pull_request:
branches: main
workflow_dispatch:
env:
API_TOKEN: ${{ secrets.API_TOKEN }}
jobs:
test:
timeout-minutes: 60
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
greps: ['@PetStore', '@PokemonApi']
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 22
- name: Install dependencies
run: npm ci
- name: Install Playwright Browsers
run: npx playwright install --with-deps
- name: Run Playwright tests
run: npx playwright test --grep ${{ matrix.greps }}
- uses: actions/upload-artifact@v4
if: ${{ !cancelled() }}
with:
name: playwright-report-${{ matrix.greps }}
path: playwright-report/
retention-days: 7