release: v0.1.1 — drop PhoneResult patches, mirror aligned spec #5
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: [stage, master] | |
| pull_request: | |
| permissions: | |
| contents: read | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| go-version: ["1.22", "1.23"] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-go@v5 | |
| with: | |
| go-version: ${{ matrix.go-version }} | |
| cache: true | |
| - name: vet | |
| run: go vet ./... | |
| - name: build | |
| run: go build ./... | |
| - name: test (offline) | |
| run: go test -race -count=1 ./... | |
| live-test: | |
| if: github.event_name == 'push' && github.ref == 'refs/heads/master' | |
| runs-on: ubuntu-latest | |
| needs: test | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-go@v5 | |
| with: | |
| go-version: "1.23" | |
| cache: true | |
| - name: live tests against stage | |
| env: | |
| POSTIO_API_KEY_STAGE: ${{ secrets.POSTIO_API_KEY_STAGE }} | |
| run: go test -count=1 -tags=live -run TestLive ./... |