From ff03e98f770348cff738ba972c8f21f8a969a7d3 Mon Sep 17 00:00:00 2001 From: Timothy DeHerrera Date: Thu, 10 Oct 2024 22:06:35 -0600 Subject: [PATCH] ci: setup basic continuous integration This currently just checks formatting and runs the test-suite, but we have enough tests now that is useful to start. --- .github/workflows/ci.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 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..5cc3eb7 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,23 @@ +name: CI + +on: + pull_request: + branches: + - master + +jobs: + test: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Install Nix + uses: nixbuild/nix-quick-install-action@v28 + - name: Setup Cache + uses: DeterminateSystems/magic-nix-cache-action@v8 + - name: Enter Devshell + run: . <(nix print-dev-env "$(nix-instantiate shell.nix)" + - name: Check Format + run: treefmt --ci + - name: Run Tests + run: cargo test --all