Update playwright.yml

This commit is contained in:
sirin 2024-10-03 11:33:10 +07:00
parent ea928754d3
commit 5d0eb5e4ff

View File

@ -1,27 +1,27 @@
name: Playwright Tests # name: Playwright Tests
on: # on:
push: # push:
branches: [ main, master ] # branches: [ main, master ]
pull_request: # pull_request:
branches: [ main, master ] # branches: [ main, master ]
jobs: # jobs:
test: # test:
timeout-minutes: 60 # timeout-minutes: 60
runs-on: ubuntu-latest # runs-on: ubuntu-latest
steps: # steps:
- uses: actions/checkout@v4 # - uses: actions/checkout@v4
- uses: actions/setup-node@v4 # - uses: actions/setup-node@v4
with: # with:
node-version: lts/* # node-version: lts/*
- name: Install dependencies # - name: Install dependencies
run: npm ci # run: npm ci
- name: Install Playwright Browsers # - name: Install Playwright Browsers
run: npx playwright install --with-deps # run: npx playwright install --with-deps
- name: Run Playwright tests # - name: Run Playwright tests
run: npx playwright test # run: npx playwright test
- uses: actions/upload-artifact@v4 # - uses: actions/upload-artifact@v4
if: ${{ !cancelled() }} # if: ${{ !cancelled() }}
with: # with:
name: playwright-report # name: playwright-report
path: playwright-report/ # path: playwright-report/
retention-days: 30 # retention-days: 30