Skip to content

外置依赖内部命令 #31

外置依赖内部命令

外置依赖内部命令 #31

Workflow file for this run

name: Codecov
on:
push:
branches: [ "main" ,"new" ]
pull_request:
branches: [ "main","new" ]
permissions:
contents: read
pages: write
id-token: write
env:
CODECOV_TOKEN: ${{ vars.CODECOV_TOKEN }}
jobs:
deploy:
runs-on: windows-latest
environment: codecov
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up pnpm
uses: pnpm/action-setup@v3
with:
version: 8
- name: Set up Node
uses: actions/setup-node@v4
with:
node-version: 20.12.2
cache: 'pnpm'
- name: Install dependencies
run: pnpm install
- name: Build
run: pnpm run packages:build
- name: Test
run: pnpm -C packages test:coverage
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
slug: Yin-Jinlong/h-ui
directory: packages/coverage/.tmp