deno2.nix/.github/workflows/ci.yml
2022-08-04 08:37:40 +09:00

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@v10
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@v10
with:
name: sno2wman
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}"
- run: nix-shell --run "treefmt --fail-on-change"