feat: init check workflows
This commit is contained in:
parent
cdcb739fd8
commit
6c78218c04
2 changed files with 39 additions and 0 deletions
19
.github/workflows/check.yml
vendored
19
.github/workflows/check.yml
vendored
|
@ -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
|
||||
|
|
20
.github/workflows/fmt.yml
vendored
20
.github/workflows/fmt.yml
vendored
|
@ -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 .
|
||||
|
||||
|
|
Loading…
Reference in a new issue