From b3e7f81e0b8b9241c0bda224430013611d70142f Mon Sep 17 00:00:00 2001 From: Daniel Kempkens Date: Thu, 14 Sep 2023 10:38:33 +0200 Subject: [PATCH] feat: Add nix-flake-check --- .forgejo/workflows/nix-flake-check.yaml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .forgejo/workflows/nix-flake-check.yaml diff --git a/.forgejo/workflows/nix-flake-check.yaml b/.forgejo/workflows/nix-flake-check.yaml new file mode 100644 index 0000000..5e2ef3a --- /dev/null +++ b/.forgejo/workflows/nix-flake-check.yaml @@ -0,0 +1,23 @@ +name: Flake Check + +on: + workflow_call: + +jobs: + check: + runs-on: ubuntu-latest-amd64 + steps: + - uses: actions/checkout@v3 + - name: Install Nix + uses: https://github.com/DeterminateSystems/nix-installer-action@v4 + with: + init: none + planner: linux + github-token: null + - name: Setup Attic + uses: https://github.com/ryanccn/attic-action@v0 + with: + endpoint: ${{ secrets.ATTIC_ENDPOINT }} + cache: ${{ secrets.ATTIC_CACHE }} + token: ${{ secrets.ATTIC_TOKEN }} + - run: nix flake check --keep-going