docs(readme): clarify two-surface API with full pipeline example and … #7
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: | |
| permissions: | |
| contents: read | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - name: Setup Go | |
| uses: actions/setup-go@v6 | |
| with: | |
| go-version: '1.26.x' | |
| cache: false | |
| - name: Vet | |
| run: go vet ./... | |
| - name: Run tests with coverage | |
| run: go test ./... -coverprofile=coverage.out -covermode=count | |
| - name: Check coverage | |
| run: | | |
| go tool cover -func=coverage.out | grep -E '^total:' | awk '{if ($3 != "100.0%") {print "Coverage is " $3 ", expected 100.0%"; exit 1}}' |