Skip to content

V2

V2 #1

Workflow file for this run

name: Test
on:
push:
branches: [main]
pull_request:
types: [opened, synchronize]
jobs:
test:
permissions:
checks: write
pull-requests: write
contents: write
name: Build and Test
timeout-minutes: 5
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
node-version: [20]
pnpm-version: [8]
steps:
- name: Check out code
uses: actions/checkout@v2
with:
fetch-depth: 2
- uses: pnpm/action-setup@v2.0.1
with:
version: ${{ matrix.pnpm-version }}
- name: Setup Node.js environment
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
cache: pnpm
- name: Install dependencies
run: pnpm install
- name: Install Playwright
run: pnpm exec playwright-core install
- name: Test
run: pnpm coverage
- name: Code Coverage Report
uses: irongut/CodeCoverageSummary@v1.3.0
with:
filename: coverage/cobertura-coverage.xml
badge: true
fail_below_min: false
format: markdown
hide_branch_rate: false
hide_complexity: false
indicators: true
output: both
thresholds: 80 90
- name: Add Coverage PR Comment
uses: marocchino/sticky-pull-request-comment@v2
if: github.event_name == 'pull_request'
with:
recreate: true
path: code-coverage-results.md