From b147d49e71c81d41663b6a97dd3552c69c0e2d1f Mon Sep 17 00:00:00 2001 From: Edmund Miller Date: Thu, 7 Dec 2023 13:21:51 -0600 Subject: [PATCH] ci(#6): Add linting through flake-checker --- .github/workflows/ci.yml | 22 +++++++++++++++++++++ .github/workflows/{build.yml => legacy.yml} | 0 2 files changed, 22 insertions(+) create mode 100644 .github/workflows/ci.yml rename .github/workflows/{build.yml => legacy.yml} (100%) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..4faaf12 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,22 @@ +name: Nix check and build + +on: + pull_request: + branches: + - main + push: + branches: + - main + +jobs: + lints: + name: Build + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: DeterminateSystems/nix-installer-action@main + - uses: DeterminateSystems/magic-nix-cache-action@main + - uses: DeterminateSystems/flake-checker-action@main + # TODO Doesn't build anything + - name: Run `nix build` + run: nix build diff --git a/.github/workflows/build.yml b/.github/workflows/legacy.yml similarity index 100% rename from .github/workflows/build.yml rename to .github/workflows/legacy.yml