feat(bom): add raw-SKU line items to estimate_bom and compare_bom_reg… #193
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: opencloudcosts-go CI | |
| on: | |
| push: | |
| branches: [main] | |
| paths: | |
| - 'opencloudcosts-go/**' | |
| pull_request: | |
| paths: | |
| - 'opencloudcosts-go/**' | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| working-directory: opencloudcosts-go | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-go@v5 | |
| with: | |
| go-version-file: opencloudcosts-go/go.mod | |
| # Build with CGO disabled — produces the same static binary as the Dockerfile. | |
| - name: build | |
| run: CGO_ENABLED=0 go build ./... | |
| # Tests run with CGO enabled (default) so the race detector works. | |
| # Tests run from the module directory (set by defaults.run.working-directory above). | |
| # To run locally: cd opencloudcosts-go && go test -race ./... | |
| - name: test | |
| run: go test -race ./... | |
| - name: vet | |
| run: go vet ./... | |
| - name: govulncheck | |
| run: | | |
| go install golang.org/x/vuln/cmd/govulncheck@latest | |
| govulncheck ./... | |
| # golangci-lint v2 via action v8 — supports go1.25+ targets. | |
| - name: golangci-lint | |
| uses: golangci/golangci-lint-action@v8 | |
| with: | |
| working-directory: opencloudcosts-go | |
| args: --enable=errcheck,staticcheck,gosec,gocritic |