-
Notifications
You must be signed in to change notification settings - Fork 556
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add justfile * add just to ci and split out commands * Fix justfile * update readme and CI * update justfile * update CI * update justfile import * remove unused block
- Loading branch information
1 parent
ef7e6ee
commit 08020d3
Showing
5 changed files
with
59 additions
and
16 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
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
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 |
---|---|---|
@@ -0,0 +1,41 @@ | ||
set quiet | ||
|
||
import? '../sdk-codegen/utils.just' | ||
|
||
_default: | ||
just --list --unsorted | ||
|
||
install *args: | ||
bundle install {{ if is_dependency() == "true" {"--quiet"} else {""} }} {{ args }} | ||
|
||
# ⭐ run all unit tests | ||
test: install | ||
bundle exec rake test | ||
|
||
# check linting / formatting status of files | ||
format-check *args: install | ||
bundle exec rubocop {{ args }} | ||
alias lint-check := format-check | ||
|
||
# ⭐ check style & formatting for all files, fixing what we can | ||
lint: (format-check "--autocorrect") | ||
|
||
# copy of `lint` with less output | ||
format: (format-check "--format quiet --autocorrect") | ||
|
||
update-certs: install | ||
bundle exec rake update_certs | ||
|
||
# run sorbet to check type definitions | ||
typecheck: install | ||
{{ if semver_matches(`ruby -e "puts RUBY_VERSION"`, ">=2.7") == "true" { \ | ||
"bundle exec srb tc" \ | ||
} else { \ | ||
"echo \"Ruby version < 2.7, skipping srb tc\"" \ | ||
} }} | ||
|
||
# called by tooling | ||
[private] | ||
update-version version: | ||
echo "{{ version }}" > VERSION | ||
perl -pi -e 's|VERSION = "[.\-\w\d]+"|VERSION = "{{ version }}"|' lib/stripe/version.rb |