Skip to content

Commit

Permalink
Use shared stripe-mock action (#1722)
Browse files Browse the repository at this point in the history
* Use shared stripe-mock action

* Call make ci-test from workflow
  • Loading branch information
anniel-stripe committed Mar 17, 2023
1 parent 1a87560 commit fb306bb
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/main.yml
Expand Up @@ -84,11 +84,10 @@ jobs:
restore-keys: |
${{ runner.os }}-yarn-
- 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: yarn && yarn test
run: make ci-test

- name: Coveralls
run: yarn report && yarn coveralls
Expand Down Expand Up @@ -127,3 +126,7 @@ jobs:
env:
NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
NPM_OTP: ${{ secrets.NPM_OTP }}
- uses: stripe/openapi/actions/notify-release@master
if: always()
with:
bot_token: ${{ secrets.SLACK_BOT_TOKEN }}
7 changes: 6 additions & 1 deletion Makefile
@@ -1,8 +1,13 @@
.PHONY: codegen-format update-version
.PHONY: codegen-format update-version test ci-test
update-version:
@echo "$(VERSION)" > VERSION
@perl -pi -e 's|"version": "[.\-\d\w]+"|"version": "$(VERSION)"|' package.json
@perl -pi -e "s|Stripe.PACKAGE_VERSION = '[.\-\d\w]+'|Stripe.PACKAGE_VERSION = '$(VERSION)'|" src/stripe.core.ts cjs/stripe.core.js esm/stripe.core.js

codegen-format:
yarn && yarn fix && yarn build

ci-test:
yarn && yarn test

test: ci-test

0 comments on commit fb306bb

Please sign in to comment.