Merge pull request #236 from Front-End-Coders-Mauritius/header-scroll… #311
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Playwright CI | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Setup Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 # Replace with the latest Node.js version | |
- name: Install dependencies | |
run: | | |
npm install -g pnpm | |
pnpm install --no-frozen-lockfile | |
- name: Install Browsers | |
run: pnpm exec playwright install | |
- name: Run Playwright tests | |
run: | | |
pnpm run nuxt test |