deps: 更新依赖项 #469
This file contains hidden or 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, pull_request] | |
| jobs: | |
| # 测试 typescript | |
| test-ts: | |
| name: test-ts | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| pull-requests: write | |
| strategy: | |
| matrix: | |
| node: [24, 26] | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Install Node | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: ${{ matrix.node }} | |
| - name: Install pnpm | |
| uses: pnpm/action-setup@v6 | |
| with: | |
| version: latest | |
| - name: Install Deps | |
| run: make install-ts | |
| - name: install biome | |
| uses: biomejs/setup-biome@v2 | |
| with: | |
| version: latest | |
| - name: run biome | |
| run: biome ci . | |
| - name: test | |
| run: make test-ts | |
| - name: Upload Coverage report | |
| uses: codecov/codecov-action@v7 | |
| with: | |
| token: ${{secrets.CODECOV_TOKEN}} | |
| files: ./coverage/ts.json | |
| # 测试 Go | |
| test-go: | |
| name: test-go | |
| runs-on: ${{ matrix.os }} | |
| permissions: | |
| contents: read | |
| pull-requests: write | |
| strategy: | |
| matrix: | |
| os: [ubuntu-latest, macOS-latest, windows-latest] | |
| go: ["1.26.x"] | |
| steps: | |
| - name: Check out code into the Go module directory | |
| uses: actions/checkout@v6 | |
| - name: Set up Go ${{ matrix.go }} | |
| uses: actions/setup-go@v6 | |
| with: | |
| go-version: ${{ matrix.go }} | |
| id: go | |
| - name: test | |
| run: make test-go | |
| - name: Upload Coverage report | |
| uses: codecov/codecov-action@v6 | |
| with: | |
| token: ${{secrets.CODECOV_TOKEN}} | |
| files: ./coverage/go.txt |