feat: 为特殊格式增加别名 #113
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test | |
on: [push] | |
jobs: | |
test: | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest, macos-latest, windows-latest] | |
node: [18, 20, 22] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: pnpm/action-setup@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
cache: 'pnpm' | |
node-version: ${{ matrix.node }} | |
- run: pnpm install | |
- run: pnpm test | |
- if: github.ref == 'refs/heads/main' && strategy.job-index == 0 | |
uses: codecov/codecov-action@v4 | |
with: | |
verbose: true | |
fail_ci_if_error: true | |
token: ${{ secrets.CODECOV_TOKEN }} |