From ff17fd86df396017250aa99ea605971e00e4fe13 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christopher=20M=C3=BChl?= Date: Wed, 26 Aug 2026 09:55:38 +0200 Subject: [PATCH] ci: run clippy and the test suite on every push and pull request --- .github/workflows/ci.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..af51921 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,29 @@ +name: CI + +on: + push: + branches: [main] + pull_request: + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +jobs: + check: + runs-on: ubuntu-latest + timeout-minutes: 60 + steps: + - uses: actions/checkout@v4 + + # The build needs bindgen and libclang for Oxigraph, which only the flake + # provides — a bare `cargo build` fails. + - uses: DeterminateSystems/nix-installer-action@main + + - uses: Swatinem/rust-cache@v2 + + - name: Clippy + run: nix develop -c cargo clippy --all-targets -- -D warnings + + - name: Test + run: nix develop -c cargo test