From 11dc9fa2d8b82594d3803f12d2c5a49e57026cfb Mon Sep 17 00:00:00 2001 From: DanConwayDev Date: Thu, 28 Mar 2024 12:13:40 +0000 Subject: build: use nix for tests ci using the same dependancies in ci as in development --- .github/workflows/clippy_rustfmt_test.yaml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 .github/workflows/clippy_rustfmt_test.yaml (limited to '.github/workflows/clippy_rustfmt_test.yaml') diff --git a/.github/workflows/clippy_rustfmt_test.yaml b/.github/workflows/clippy_rustfmt_test.yaml new file mode 100644 index 0000000..5253814 --- /dev/null +++ b/.github/workflows/clippy_rustfmt_test.yaml @@ -0,0 +1,16 @@ +on: push + +name: build test + +jobs: + ci: + runs-on: ubuntu-latest + timeout-minutes: 8 + steps: + - uses: actions/checkout@v3 + - uses: cachix/install-nix-action@v22 + with: + nix_path: nixpkgs=channel:nixos-unstable + - run: nix develop --command cargo clippy + - run: nix develop --command cargo fmt --all -- --check + - run: nix develop --command cargo test -- cgit v1.2.3