Skip to content

Merge pull request #31 from GuoXiCheng/dev-c #19

Merge pull request #31 from GuoXiCheng/dev-c

Merge pull request #31 from GuoXiCheng/dev-c #19

Workflow file for this run

name: Run Tests and Generate Coverage
on:
push:
branches:
- main
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: 18
- name: Install dependencies
run: npm install
- name: Run Jest tests
run: npm run test
env:
GITEE_TOKEN: ${{ secrets.GITEE_TOKEN }}
GITEE_OWNER: ${{ secrets.GITEE_OWNER }}
GITEE_REPO: ${{ secrets.GITEE_REPO }}
GITEE_NUMBER: ${{ secrets.GITEE_NUMBER }}
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}