docs: add status + version to flag reference, complete command coverage #116
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
| # Test builds on push and PR | |
| name: Build Test | |
| on: | |
| push: | |
| branches: [ "stable", "dev" ] | |
| pull_request: | |
| branches: [ "stable", "dev" ] | |
| jobs: | |
| build: | |
| name: Build and Test | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| go-version: ['1.25'] | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Set up Go | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version: ${{ matrix.go-version }} | |
| check-latest: true | |
| - name: Verify dependencies | |
| run: go mod verify | |
| - name: Build (standard) | |
| run: go build -v -o ping-007-test ./cmd/ping-007/ | |
| - name: Build (no-c2 variant) | |
| run: go build -v -tags noc2 -o ping-007-noc2-test ./cmd/ping-007/ | |
| - name: Test binary | |
| run: ./ping-007-test --version | |
| - name: Vet | |
| run: go vet ./... | |
| - name: Run tests (race detector) | |
| run: go test -race -v ./... | |
| cross-platform: | |
| name: Cross Platform Build | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| include: | |
| - goos: linux | |
| goarch: amd64 | |
| name: ping-007-linux-amd64 | |
| - goos: linux | |
| goarch: arm64 | |
| name: ping-007-linux-arm64 | |
| - goos: windows | |
| goarch: amd64 | |
| name: ping-007-windows-amd64.exe | |
| - goos: darwin | |
| goarch: amd64 | |
| name: ping-007-darwin-amd64 | |
| - goos: darwin | |
| goarch: arm64 | |
| name: ping-007-darwin-arm64 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Set up Go | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version: '1.25' | |
| - name: Build for ${{ matrix.goos }}/${{ matrix.goarch }} | |
| env: | |
| GOOS: ${{ matrix.goos }} | |
| GOARCH: ${{ matrix.goarch }} | |
| CGO_ENABLED: 0 | |
| run: | | |
| go build -v -ldflags="-s -w" -o ${{ matrix.name }} ./cmd/ping-007/ |