1
0
Fork 0
reusable-workflows/.github/workflows/nix-flake-check.yaml

30 lines
686 B
YAML

name: Flake Check
on:
workflow_call:
inputs:
runner:
default: ubuntu-latest-amd64
required: false
type: string
jobs:
check:
runs-on: "${{ inputs.runner }}"
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