Skip to content

Add basic example to docs about page #174

Add basic example to docs about page

Add basic example to docs about page #174

Workflow file for this run

name: Tests
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.x]
steps:
- uses: actions/checkout@v3
- name: Run tests
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: npm ci
- run: npm run test:ci
- name: Get coverage output
id: coverage
run: echo "value=$(jq -r '.total.lines.pct|tostring + "%"' coverage/coverage-summary.json)" >> $GITHUB_OUTPUT
- name: Update coverage badge JSON gist
uses: schneegans/[email protected]
with:
auth: ${{ secrets.GIST_SECRET }}
gistID: ba8810278ef57a8ae9243e3edf9f43b8
filename: coverage-master.json
label: Coverage
message: ${{ steps.coverage.outputs.value }}
color: green
namedLogo: vitest
forceUpdate: true