From f8d066e2d7c79603562ce9bfbbbf0afed6a5ba22 Mon Sep 17 00:00:00 2001 From: jutty Date: Fri, 26 Dec 2025 00:19:06 -0300 Subject: [PATCH] Add just and coverage check to CI --- .forgejo/workflows/check.yaml | 23 ++++++++++++++--------- 1 file changed, 14 insertions(+), 9 deletions(-) diff --git a/.forgejo/workflows/check.yaml b/.forgejo/workflows/check.yaml index ee0fa0a..3cc6d02 100644 --- a/.forgejo/workflows/check.yaml +++ b/.forgejo/workflows/check.yaml @@ -6,21 +6,26 @@ jobs: image: rust:slim steps: - name: install action dependencies - run: apt install --no-install-recommends --update -y nodejs + run: apt install --no-install-recommends --update -y nodejs just - name: setup toolchain - run: rustup component add rustfmt clippy + run: | + rustup component add rustfmt clippy + cargo install cargo-llvm-cov --locked + - name: checkout code uses: actions/checkout@v6 - - name: cargo build - run: cargo build + - name: build + run: just build - name: format - run: cargo fmt -- --check + run: just format-assess - name: lint - run: cargo clippy -- -Dwarnings - - name: format - run: cargo fmt -- --check + run: just lint + - name: check + run: just check - name: test - run: cargo test + run: just test + - name: coverage + run: just cover-assess