fix: use synthetic Stripe test keys to avoid GitHub push protection #74
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: macos-latest | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 | |
| - uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6 | |
| with: | |
| go-version: '1.25' | |
| cache-dependency-path: go.sum | |
| - name: Enforce repo boundaries | |
| run: /usr/bin/env bash .scripts/check-repo-boundaries.sh | |
| - name: Run tests | |
| env: | |
| CGO_ENABLED: '1' | |
| run: go test ./... -v -count=1 | |
| - name: Build | |
| env: | |
| CGO_ENABLED: '1' | |
| run: go build -ldflags "-s -w" -o build/same ./cmd/same | |
| - name: Verify binary | |
| run: ./build/same version | |
| - name: Upgrade-path migration smoke | |
| env: | |
| CGO_ENABLED: '1' | |
| run: go test ./internal/store -run TestOpenPath_MigratesLegacyV5ToV6 -count=1 | |
| - name: Provider smoke matrix (keyword baseline) | |
| env: | |
| SAME_SMOKE_PROVIDERS: none | |
| SAME_SMOKE_REQUIRED: none | |
| run: make provider-smoke | |
| test-linux: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 | |
| - uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6 | |
| with: | |
| go-version: '1.25' | |
| cache-dependency-path: go.sum | |
| - name: Run tests | |
| env: | |
| CGO_ENABLED: '1' | |
| run: go test ./... -count=1 | |
| lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 | |
| - uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6 | |
| with: | |
| go-version: '1.25' | |
| cache-dependency-path: go.sum | |
| - name: Install golangci-lint (built with Go 1.25) | |
| run: go install github.com/golangci/golangci-lint/v2/cmd/golangci-lint@v2.1.6 | |
| - name: Run linter | |
| env: | |
| CGO_ENABLED: '1' | |
| run: golangci-lint run ./... | |
| cross-compile: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| goos: [windows, linux] | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 | |
| - uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6 | |
| with: | |
| go-version: '1.25' | |
| cache-dependency-path: go.sum | |
| - name: Cross-compile check (${{ matrix.goos }}) | |
| env: | |
| GOOS: ${{ matrix.goos }} | |
| GOARCH: amd64 | |
| CGO_ENABLED: '0' | |
| run: go build ./cmd/same |