docs: remove promo articles from repo (moved to mybook) #25
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: [main] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: actions/setup-go@v6 | |
| with: | |
| go-version-file: go.mod | |
| - name: Build | |
| env: | |
| CGO_ENABLED: "1" | |
| run: go build ./... | |
| - name: Lint | |
| uses: golangci/golangci-lint-action@v6 | |
| with: | |
| version: latest | |
| - name: Vulnerability Check | |
| continue-on-error: true # stdlib vulns require Go upgrade, don't block CI | |
| run: | | |
| go install golang.org/x/vuln/cmd/govulncheck@latest | |
| govulncheck ./... | |
| - name: Test | |
| env: | |
| CGO_ENABLED: "1" | |
| run: go test -race ./... -count=1 | |
| - name: Coverage | |
| env: | |
| CGO_ENABLED: "1" | |
| run: | | |
| go test -coverprofile=coverage.out ./internal/... | |
| go tool cover -func=coverage.out | tail -1 | |
| COVERAGE=$(go tool cover -func=coverage.out | grep total | awk '{print $3}') | |
| echo "### Coverage: $COVERAGE" >> $GITHUB_STEP_SUMMARY |