builds: check code style

This commit is contained in:
Jeremy Baxter 2024-03-12 11:06:44 +13:00
parent 93c8ec4e25
commit 01ec87ad8a
2 changed files with 9 additions and 0 deletions

View file

@ -2,6 +2,7 @@
image: alpine/edge image: alpine/edge
packages: packages:
- clang - clang
- clang-extra-tools
- gcc - gcc
sources: sources:
- "https://git.sr.ht/~jeremy/callisto" - "https://git.sr.ht/~jeremy/callisto"
@ -19,3 +20,7 @@ tasks:
sudo make -Ccallisto install sudo make -Ccallisto install
- test: | - test: |
csto callisto/test.lua csto callisto/test.lua
- format: |
cd callisto
make format
git diff --exit-code

View file

@ -24,5 +24,9 @@ tasks:
sudo make -Ccallisto install sudo make -Ccallisto install
- test: | - test: |
csto callisto/test.lua csto callisto/test.lua
- format: |
cd callisto
make format
git diff --exit-code
- flake: | - flake: |
nix build ./callisto nix build ./callisto