gc: stop reclaiming live cocoon-macos guests' TAPs as orphans #1045
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: | |
| tags: | |
| - '!v*' | |
| branches: | |
| - '*' | |
| paths-ignore: | |
| - 'os-image/**' | |
| pull_request: | |
| paths-ignore: | |
| - 'os-image/**' | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v7 | |
| - name: Set up Go | |
| uses: actions/setup-go@v7 | |
| with: | |
| go-version-file: 'go.mod' | |
| - name: Download dependencies | |
| run: go mod download | |
| - name: Vet | |
| run: go vet ./... | |
| - name: Test with coverage | |
| env: | |
| # Constrained runners: token storm scale; the full 256-process gate runs offline. | |
| COCOON_STORM_WORKERS: "2" | |
| run: go test -race -timeout 20m -count=1 -cover -coverprofile=coverage.out ./... | |
| - name: Upload coverage artifact | |
| continue-on-error: true | |
| uses: actions/upload-artifact@v7 | |
| with: | |
| name: coverage | |
| path: coverage.out | |
| retention-days: 7 | |
| - name: Build binary | |
| run: CGO_ENABLED=0 go build -o cocoon . |