Skip to content

Merge pull request #8 from LeoTuet/main #16

Merge pull request #8 from LeoTuet/main

Merge pull request #8 from LeoTuet/main #16

Workflow file for this run

name: Lint and Test
on:
push:
branches:
- main
- 'v*'
pull_request: {}
env:
PNPM_VERSION: 6.19.0
jobs:
lint:
name: Linting
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: pnpm/action-setup@v2.0.1
with:
version: ${{ env.PNPM_VERSION }}
- uses: actions/setup-node@v2
with:
node-version: 16.x
cache: pnpm
- run: pnpm install
- run: pnpm run lint
test:
name: Testing
timeout-minutes: 60
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2.0.1
with:
version: ${{ env.PNPM_VERSION }}
- uses: actions/setup-node@v3
with:
node-version: 18
cache: pnpm
- name: Install dependencies
run: pnpm install
- name: Install Playwright Browsers
run: pnpm exec playwright install --with-deps
- name: Run Playwright tests
run: pnpm exec playwright test
- uses: actions/upload-artifact@v3
if: always()
with:
name: playwright-report
path: playwright-report/
retention-days: 30