Skip to content

Commit

Permalink
Create coverage.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Zhang-Wei-666 authored Apr 3, 2024
1 parent 67e4d2b commit d671dd0
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Coverage

on:
push:
branches:
- main
- dev
pull_request:
branches:
- main

jobs:
coverage:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v2

- name: Use Node.js v18
uses: actions/setup-node@v4
with:
node-version: 18
registry-url: https://registry.npmjs.org/
cache: pnpm

- name: Test
run: |
pnpm test-coverage
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v4
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

0 comments on commit d671dd0

Please sign in to comment.