From d2c208b9d68396e0269faad2fc8bdf51be257b23 Mon Sep 17 00:00:00 2001 From: seth Date: Wed, 6 Sep 2023 10:44:45 -0400 Subject: actions: add check workflow --- .github/workflows/check.yaml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/check.yaml diff --git a/.github/workflows/check.yaml b/.github/workflows/check.yaml new file mode 100644 index 0000000..e8f354f --- /dev/null +++ b/.github/workflows/check.yaml @@ -0,0 +1,25 @@ +name: run checks + +on: + push: + branches: + - main + pull_request: + workflow_dispatch: + + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + - uses: DeterminateSystems/nix-installer-action@main + - uses: DeterminateSystems/magic-nix-cache-action@main + + - name: stylua + run: + nix build -L .#checks.x86_64-linux.stylua + + - name: flake check + run: nix flake check --accept-flake-config -- cgit v1.2.3