Skip to content

Commit

Permalink
taskfile
Browse files Browse the repository at this point in the history
  • Loading branch information
orsinium committed Dec 29, 2024
1 parent 479376f commit 6bd39b8
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions Taskfile.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# https://taskfile.dev
version: '3'

tasks:
release:
desc: build and publish release
cmds:
- test {{.CLI_ARGS}}
- grep -F '"{{.CLI_ARGS}}"' Cargo.toml
- cargo build --release
- cargo publish
- git tag {{.CLI_ARGS}}
- git push
- git push --tags
- gh release create --generate-notes {{.CLI_ARGS}}
format:
desc: run code formatters
cmds:
- cargo fmt
test:
desc: run tests
cmds:
- cargo test
lint:
desc: run linters
cmds:
- cargo clippy
all:
cmds:
- task: format
- task: lint
- task: test
default:
- task: all

0 comments on commit 6bd39b8

Please sign in to comment.