Update generated code (#1951) #3659
This file contains 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: | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: {} | |
push: | |
branches: | |
- master | |
- beta | |
- sdk-release/** | |
- feature/** | |
tags: | |
- v[0-9]+.[0-9]+.[0-9]+* | |
pull_request: | |
branches: | |
- master | |
- beta | |
- sdk-release/** | |
- feature/** | |
jobs: | |
lint: | |
name: Lint | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@master | |
- name: Setup go | |
uses: actions/setup-go@v1 | |
with: | |
go-version: "1.19" | |
- name: lint | |
run: | | |
go install honnef.co/go/tools/cmd/[email protected] && | |
go install golang.org/x/tools/cmd/[email protected] && | |
$HOME/go/bin/staticcheck && | |
make vet && | |
make check-gofmt | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
go: | |
- "1.23" | |
- "1.22" | |
- "1.21" | |
- "1.20" | |
- "1.19" | |
- "1.18" | |
- "1.17" | |
- "1.16" | |
- "1.15" | |
name: "Test: go v${{ matrix.go }}" | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup go | |
uses: actions/setup-go@v1 | |
with: | |
go-version: ${{ matrix.go }} | |
- uses: stripe/openapi/actions/stripe-mock@master | |
- name: Test | |
run: make ci-test | |
- name: Coveralls | |
run: make coverage && make coveralls | |
if: matrix.go == '1.16' | |
env: | |
COVERALLS_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
COVERALLS_FLAG_NAME: Go-${{ matrix.go }} | |
publish: | |
name: Publish | |
if: >- | |
(github.event_name == 'workflow_dispatch' || github.event_name == 'push') && | |
startsWith(github.ref, 'refs/tags/v') && | |
endsWith(github.actor, '-stripe') | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: stripe/openapi/actions/notify-release@master | |
if: always() | |
with: | |
bot_token: ${{ secrets.SLACK_BOT_TOKEN }} |