feat(ci): Use reusable workflow
All checks were successful
CI / flake-check (push) Successful in 1m29s

This commit is contained in:
Daniel Kempkens 2023-09-14 10:41:43 +02:00
parent acbc4d9d71
commit 4f8ffc7df7
Signed by: daniel
SSH key fingerprint: SHA256:Ks/MyhQYcPRQiwMKLAKquWCdCPe3JXlb1WttgnAoSeM
2 changed files with 8 additions and 22 deletions

View file

@ -1,22 +0,0 @@
name: Check
on: [push]
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

8
.github/workflows/ci.yaml vendored Normal file
View file

@ -0,0 +1,8 @@
name: CI
on: [push]
jobs:
flake-check:
uses: daniel/reusable-workflows/.github/workflows/nix-flake-check.yaml@main
secrets: inherit