Skip to content

Commit

Permalink
Merge pull request #1 from Dzanan91/setup-github-actions-integration
Browse files Browse the repository at this point in the history
Added yaml file config
  • Loading branch information
Dzanan91 authored Nov 7, 2024
2 parents b4990e4 + 1ff9f48 commit 6ef710f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
9 changes: 8 additions & 1 deletion .github/workflows/playwright.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,19 @@ jobs:
- uses: actions/setup-node@v4
with:
node-version: lts/*
- name: Cache node modules
uses: actions/cache@v3
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Install dependencies
run: npm ci
- name: Install Playwright Browsers
run: npx playwright install --with-deps
- name: Run Playwright tests
run: npx playwright test
run: npm run test:headless
- uses: actions/upload-artifact@v4
if: ${{ !cancelled() }}
with:
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
"version": "1.0.0",
"main": "index.js",
"scripts": {
"test:headed": "npx playwright test --headed"
"test:headed": "npx playwright test --headed",
"test:headless": "npx playwright test"
},
"keywords": [],
"author": "",
Expand Down

0 comments on commit 6ef710f

Please sign in to comment.