Skip to content

feat: update strategy #15

feat: update strategy

feat: update strategy #15

Workflow file for this run

name: CI
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 20
- name: Set up pnpm
uses: pnpm/action-setup@v3
with:
version: 8
run_install: |
- recursive: true
args: [--frozen-lockfile, --strict-peer-dependencies]
- name: Test coverage
run: pnpm test:cov
- name: Update coverage badges
uses: jaywcjlove/coverage-badges-cli@main
with:
source: ./coverage/coverage-summary.json
output: ./coverage/badges.svg
jsonPath: total.lines.pct
- name: Setup docs
run: |
mkdir gh
cp -r coverage gh/coverage
cp README.md gh/README.md
- name: Deploy coverage
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_branch: gh-pages
publish_dir: ./gh