Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use shared stripe-mock action (#1722)
* Use shared stripe-mock action * Call make ci-test from workflow
- Loading branch information
1 parent
1a87560
commit fb306bb
Showing
2 changed files
with
12 additions
and
4 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |