Skip to content

Commit

Permalink
Merge branch 'master' into latest-codegen-master
Browse files Browse the repository at this point in the history
  • Loading branch information
pakrym-stripe authored Mar 23, 2023
2 parents 669ba69 + 2deef53 commit 31633d9
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 6 deletions.
21 changes: 16 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,15 +51,26 @@ jobs:
uses: actions/setup-go@v1
with:
go-version: ${{ matrix.go }}
- name: Start stripe-mock
run: docker run -d -p 12111-12112:12111-12112 stripe/stripe-mock && sleep 5
- uses: stripe/openapi/actions/stripe-mock@master
- name: Test
run: make test &&
make bench &&
make check-api-clients
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 }}
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
all: test bench vet lint check-api-clients check-gofmt
all: test bench vet lint check-api-clients check-gofmt ci-test

bench:
go test -race -bench . -run "Benchmark" ./form
Expand All @@ -18,6 +18,7 @@ lint:
test:
go run scripts/test_with_stripe_mock/main.go -race ./...

ci-test: test bench check-api-clients
vet:
go vet ./...

Expand Down

0 comments on commit 31633d9

Please sign in to comment.