diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index d682a75303..9906c674c9 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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 @@ -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 }} diff --git a/Makefile b/Makefile index 7ab089751c..1acedb842a 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -.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 @@ -6,3 +6,8 @@ update-version: codegen-format: yarn && yarn fix && yarn build + +ci-test: + yarn && yarn test + +test: ci-test