docs: harden OSS repo posture and add OMO setup guidance #25
Workflow file for this run
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: | |
| concurrency: | |
| group: ci-${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| codeql: | |
| name: CodeQL analysis | |
| runs-on: ubuntu-latest | |
| permissions: | |
| actions: read | |
| contents: read | |
| security-events: write | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - uses: github/codeql-action/init@v4 | |
| with: | |
| languages: go | |
| - uses: github/codeql-action/autobuild@v4 | |
| - uses: github/codeql-action/analyze@v4 | |
| pr-title: | |
| name: Validate PR title | |
| if: github.event_name == 'pull_request' | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: amannn/action-semantic-pull-request@v5 | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| test: | |
| name: Go tests + coverage | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - uses: actions/setup-go@v5 | |
| with: | |
| go-version-file: go.mod | |
| - name: Run unit tests with coverage | |
| run: go test ./... -coverprofile=coverage.out -covermode=atomic | |
| - name: Upload coverage to Codecov | |
| uses: codecov/codecov-action@v5 | |
| with: | |
| files: ./coverage.out | |
| fail_ci_if_error: false | |
| scripts: | |
| name: Script smoke tests (skipped targets expected) | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 25 | |
| concurrency: | |
| group: benchmark-smoke-${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - uses: actions/setup-go@v5 | |
| with: | |
| go-version-file: go.mod | |
| - name: Install benchmark quality tools | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y hyperfine | |
| go install golang.org/x/perf/cmd/benchstat@latest | |
| echo "$(go env GOPATH)/bin" >> "$GITHUB_PATH" | |
| - name: Run benchmark script smoke | |
| run: bash scripts/run-all.sh | |
| - name: Generate report from raw results | |
| run: python3 scripts/generate-report.py | |
| - name: Validate benchmark result schemas | |
| run: make benchmark-schema-validate | |
| - name: Run statistical quality gate | |
| run: make ci-benchmark-quality-check | |
| - name: Validate publication disclaimer policy | |
| run: make report-disclaimer-check | |
| - name: Validate methodology changelog policy | |
| run: make methodology-changelog-check | |
| - name: Validate README/report publication sync | |
| run: make publication-sync-check | |
| - name: Upload benchmark quality summary | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: benchmark-quality-summary | |
| path: results/latest/benchmark-quality-summary.json | |
| retention-days: 14 |