24 lines
690 B
YAML
24 lines
690 B
YAML
name: "nix flake and fmt check"
|
|
on:
|
|
pull_request:
|
|
push:
|
|
jobs:
|
|
flake-check:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: DeterminateSystems/nix-installer-action@main
|
|
with:
|
|
logger: pretty
|
|
- uses: DeterminateSystems/magic-nix-cache-action@main
|
|
- uses: cachix/cachix-action@v15
|
|
with:
|
|
name: cything
|
|
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}"
|
|
- name: Setup Attic cache
|
|
uses: ryanccn/attic-action@v0
|
|
with:
|
|
endpoint: ${{ vars.ATTIC_ENDPOINT }}
|
|
cache: ${{ vars.ATTIC_CACHE }}
|
|
token: ${{ secrets.ATTIC_TOKEN }}
|
|
- uses: actions/checkout@v4
|
|
- run: nix flake check
|