Skip to content

Commit

Permalink
ci: unit test report
Browse files Browse the repository at this point in the history
  • Loading branch information
xyy94813 authored Oct 10, 2023
1 parent d1d6bba commit 330dbf4
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Codecov

on:
# pull_request:
# types: [opened]
push:
branches:
- main

jobs:
unit-test:
runs-on: ubuntu-latest

steps:
- name: Checkout 🛎️
uses: actions/checkout@v3

- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: 16

- name: Install dependencies
run: npm ci

- name: Run tests
run: npm run test:all -- --coverage

- name: Upload coverage report to Codecov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}

0 comments on commit 330dbf4

Please sign in to comment.