diff --git a/.forgejo/workflows/ci.yml b/.forgejo/workflows/ci.yml index 3207491..bb9efec 100644 --- a/.forgejo/workflows/ci.yml +++ b/.forgejo/workflows/ci.yml @@ -6,6 +6,12 @@ on: pull_request: branches: [ main ] +env: + # Should speed up builds. + CARGO_INCREMENTAL: 0 + # Should reduce the size of ./target to improve cache load/store. + CARGO_PROFILE_TEST_DEBUG: 0 + jobs: check-backend: name: Backend @@ -33,19 +39,19 @@ jobs: run: | # hurl needs libxml needs libclang apt update && apt install -y clang - cargo build --tests + cargo build --tests --locked working-directory: backend - name: "Lint" run: | rustup component add clippy - cargo clippy + cargo clippy --locked working-directory: backend - name: "Unit Tests" run: | - cargo test -- --skip api + cargo test --locked -- --skip api working-directory: backend - name: "Integration Tests" - run: cargo test --test api + run: cargo test --locked --test api working-directory: backend check-frontend: