From 77d83b4e9cd9d096dd126a73b49ddb11f719b352 Mon Sep 17 00:00:00 2001 From: allthatjazzleo Date: Tue, 26 Dec 2023 15:07:00 +0800 Subject: [PATCH] add ci --- .github/workflows/nix.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/nix.yml diff --git a/.github/workflows/nix.yml b/.github/workflows/nix.yml new file mode 100644 index 0000000..4294794 --- /dev/null +++ b/.github/workflows/nix.yml @@ -0,0 +1,23 @@ +name: Run fmt-ci + +on: + push: + branches: + - main + - dev + tags: + - "v*.*.*" + pull_request: + branches: + - main + +jobs: + check_nix: + 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 + - name: Run `fmt-ci` + run: nix develop --command fmt-ci