Skip to content

Commit

Permalink
Update playwright.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Adameddy26 authored Jun 13, 2024
1 parent 7cfcf8b commit 9046594
Showing 1 changed file with 16 additions and 4 deletions.
20 changes: 16 additions & 4 deletions .github/workflows/playwright.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,33 @@ on:
jobs:
run-playwright:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '16'
node-version: '20'

- name: Install dependencies
run: npm install

- name: Install Playwright Browsers
- name: Generate .env file
run: cp .env.example .env

- name: Install Playwright
run: npx playwright install

- name: Run Playwright tests
- name: Run Playwright automation script
run: npx playwright test
env:
USERNAME: ${{ secrets.USERNAME }}
PASSWORD: ${{ secrets.PASSWORD }}

- name: Upload screenshot on error
if: ${{ failure() }}
uses: actions/upload-artifact@v2
with:
name: error-screenshot
path: error-screenshot-*.png

0 comments on commit 9046594

Please sign in to comment.