Sync provider-axis SDK with latest Docs for Suno/TikTok/TW and shorturl request schema #162
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: Go CI | |
| on: | |
| pull_request: | |
| paths: | |
| - "go/**" | |
| - ".github/workflows/go.yml" | |
| push: | |
| branches: [main] | |
| paths: | |
| - "go/**" | |
| - ".github/workflows/go.yml" | |
| jobs: | |
| test: | |
| name: Go ${{ matrix.go-version }} | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| go-version: ["1.21", "1.22", "1.23"] | |
| defaults: | |
| run: | |
| working-directory: go | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Set up Go ${{ matrix.go-version }} | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version: ${{ matrix.go-version }} | |
| cache-dependency-path: go/go.sum | |
| - name: go mod download | |
| run: go mod download | |
| - name: go vet | |
| run: go vet ./... | |
| - name: go build | |
| run: go build ./... | |
| - name: go test | |
| run: go test -race -count=1 ./... |