feat: init check workflows

This commit is contained in:
notohh 2023-04-23 17:33:44 -04:00
parent cdcb739fd8
commit 6c78218c04
Signed by: notohh
GPG key ID: BD47506D475EE86D
2 changed files with 39 additions and 0 deletions

View file

@ -1 +1,20 @@
name: Check
on: [push, pull_request, workflow_dispatch]
jobs:
checks:
name: Check expressions
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: cachix/install-nix-action@v18
with:
install_url: https://nixos.org/nix/install
extra_nix_config: |
auto-optimise-store = true
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
experimental-features = nix-command flakes
- run: nix flake check

View file

@ -1 +1,21 @@
name: Formatting Check
on: [push, pull_request, workflow_dispatch]
jobs:
checks:
name: Check expressions
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: cachix/install-nix-action@v18
with:
install_url: https://nixos.org/nix/install
extra_nix_config: |
auto-optimise-store = true
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
experimental-features = nix-command flakes
- run: nix run nixpkgs#alejandra -- -c .