Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add justfile #3040

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions justfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
set quiet

_default:
just --list

test no_build="" config="Debug":
dotnet test {{no_build}} -f net8.0 src/StripeTests/StripeTests.csproj -c {{config}}

# skip build and test in release mode
ci-test: (test "--no-build" "Release")
# skip build and test in debug mode
ci-test-debug: (test "--no-build")

format:
TargetFramework=net5.0 dotnet format src/Stripe.net/Stripe.net.csproj --severity warn

update-version:
echo "$(VERSION)" > VERSION
perl -pi -e 's|<Version>[.\-\d\w]+</Version>|<Version>$(VERSION)</Version>|' src/Stripe.net/Stripe.net.csproj
perl -pi -e 's|Current = "[.\-\d\w]+";|Current = "$(VERSION)";|' src/Stripe.net/Constants/Version.cs

_self_validate:
#!/usr/bin/env python
just print("{{justfile()}}")
# could also do this in JQ?
# just --dump --dump-format json | jq '.recipes | keys'
Loading