feat(P4b): 五视图前端重写——本地静态资源、零 CDN、模块下钻与调用树 (#64) #196
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: CI | |
| on: | |
| push: | |
| branches: [ master, v2 ] | |
| pull_request: | |
| branches: [ master, v2 ] | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-go@v5 | |
| with: | |
| go-version-file: 'go.mod' | |
| - name: Run tests | |
| run: go test ./... -count=1 -race -covermode=atomic -coverprofile=coverage.out | |
| - name: Upload coverage profile | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: coverage | |
| path: coverage.out | |
| # example is an independent Go module; the root-module test run above never | |
| # type-checks it, so it must be built and tested explicitly (issue #46). | |
| - name: Build example module | |
| working-directory: ./example | |
| run: go build ./... | |
| - name: Test example module | |
| working-directory: ./example | |
| run: go test ./... -count=1 -race | |
| lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-go@v5 | |
| with: | |
| go-version-file: 'go.mod' | |
| - name: golangci-lint | |
| uses: golangci/golangci-lint-action@v8 | |
| with: | |
| skip-go-installation: true | |
| args: --timeout 5m --verbose |