Skip to content

Commit

Permalink
Added container image and remove master branch from triggering the gi…
Browse files Browse the repository at this point in the history
…thub action
  • Loading branch information
eugene-dynamsoft committed Oct 8, 2024
1 parent eab0e58 commit dadb712
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions .github/workflows/playwright.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,19 @@
name: Playwright Tests
on:
push:
branches: [ main, master ]
branches:
- main
pull_request:
branches: [ main, master ]
branches:
- main
jobs:
test:
env:
HOME: /root
timeout-minutes: 60
name: 'Playwright Tests'
runs-on: ubuntu-latest
container:
image: mcr.microsoft.com/playwright:v1.46.1-jammy
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
Expand All @@ -21,9 +25,10 @@ jobs:
run: npx playwright install --with-deps
- name: Run Playwright tests
run: npm test
- uses: actions/upload-artifact@v4
- name: Upload test results
uses: actions/upload-artifact@v4
if: always()
with:
name: playwright-report
path: playwright-report/
path: playwright-report
retention-days: 30

0 comments on commit dadb712

Please sign in to comment.