Skip to content

feat: implement code quality scoring script and workflow #438

feat: implement code quality scoring script and workflow

feat: implement code quality scoring script and workflow #438

Workflow file for this run

name: Playwright Tests
on:
push:
branches: [main, master]
pull_request:
branches: [main, master]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
jobs:
test:
timeout-minutes: 30
runs-on: ubuntu-latest
strategy:
matrix:
browser: [chromium, firefox]
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Setup Node.js from .nvmrc
uses: actions/setup-node@v3
with:
node-version-file: ".nvmrc"
cache: "yarn"
- name: Cache Playwright browsers
uses: actions/cache@v4
with:
path: ~/.cache/ms-playwright
key: ${{ runner.os }}-playwright-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-playwright-
- name: Install dependencies
run: yarn --frozen-lockfile
- name: Install Playwright Browsers
run: yarn playwright install --with-deps ${{ matrix.browser }}
- name: Build project (optional, remove if not needed for tests)
run: yarn build
- name: Run Playwright tests on ${{ matrix.browser }}
run: yarn playwright test --project=${{ matrix.browser }}
- name: Upload Playwright report
if: always()
uses: actions/upload-artifact@v4
with:
name: playwright-report-${{ matrix.browser }}
path: playwright-report/
retention-days: 30