30 lines
679 B
YAML
30 lines
679 B
YAML
|
name: CI
|
||
|
|
||
|
on:
|
||
|
push:
|
||
|
|
||
|
jobs:
|
||
|
flake-check:
|
||
|
name: nix-check
|
||
|
runs-on: ubuntu-latest
|
||
|
steps:
|
||
|
- uses: actions/checkout@v3
|
||
|
- uses: cachix/install-nix-action@v17
|
||
|
- uses: cachix/cachix-action@v12
|
||
|
with:
|
||
|
name: sno2wman
|
||
|
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}"
|
||
|
- run: nix flake check
|
||
|
|
||
|
treefmt:
|
||
|
name: treefmt
|
||
|
runs-on: ubuntu-latest
|
||
|
steps:
|
||
|
- uses: actions/checkout@v3
|
||
|
- uses: cachix/install-nix-action@v17
|
||
|
- uses: cachix/cachix-action@v12
|
||
|
with:
|
||
|
name: sno2wman
|
||
|
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}"
|
||
|
- run: nix-shell --run "treefmt --fail-on-change"
|