forgejo-todo-checker/justfile
Paul Campbell 33d49ce712
All checks were successful
Test / checks (map[name:nightly]) (push) Successful in 4m54s
Test / checks (map[name:stable]) (push) Successful in 4m35s
build: add build steps as default recipe in justfile
2024-11-14 20:32:46 +00:00

34 lines
709 B
Makefile

build:
#!/usr/bin/env bash
set -e
cargo fmt
cargo fmt --check
cargo hack clippy
cargo hack build
cargo hack test
cargo doc
# cargo test --example get
cargo mutants --jobs 4
self-test:
just test $PWD forgejo-todo-checker
test path repo:
GITHUB_WORKSPACE={{ path }} \
GITHUB_REPOSITORY=kemitix/{{ repo }} \
GITHUB_SERVER_URL=https://git.kemitix.net \
cargo run
next_version := `git-cliff --bumped-version | cut -b 2-`
@next:
echo "Next version: {{ next_version }}"
prep-release:
jj new -m"chore: release v{{ next_version }}"
cargo set-version "{{ next_version }}"
git-cliff -o CHANGELOG.md --bump
echo "Check CHANGELOG.md for next version"
jj diff
jj status