Skip to content

Commit 0caad9c

Browse files
committed
Add Mise tasks to run pre-ci checks
1 parent 4e6eadb commit 0caad9c

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

mise.toml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,3 +88,13 @@ run = "mix credo --strict"
8888
[tasks.sobelow]
8989
description = "Check Elixir code for security vulnerabilities"
9090
run = "mix sobelow --private"
91+
92+
[tasks.compile]
93+
description = "Ensure the Elixir code compiles"
94+
run = "mix compile --all-warnings --warning-as-errors"
95+
96+
# This doesn't include all checks from the continuous integration, only those who often fail.
97+
[tasks.pre-ci]
98+
description = "Run this to ensure code is formatted, and passes Credo + Sobelow checks"
99+
depends = ["format", "compile", "credo", "sobelow", "test"]
100+
alias = "p"

0 commit comments

Comments
 (0)