refactor(components): 正确处理 render 返回的 dispose 方法 #411
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: | |
| # Required to checkout the code | |
| contents: read | |
| # Required to put a comment into the pull-request | |
| pull-requests: write | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Install Node | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: 24 | |
| - name: Install pnpm | |
| uses: pnpm/action-setup@v5 | |
| 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@v5 | |
| with: | |
| token: ${{secrets.CODECOV_TOKEN}} | |
| files: ./coverage/ts.json | |
| # 测试 Go | |
| test-go: | |
| name: test-go | |
| runs-on: ${{ matrix.os }} | |
| 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@v5 | |
| with: | |
| token: ${{secrets.CODECOV_TOKEN}} | |
| files: ./coverage/go.txt |