From 6c78218c0444d1c33ecf7a19c684f38f7ce961d0 Mon Sep 17 00:00:00 2001 From: notohh Date: Sun, 23 Apr 2023 17:33:44 -0400 Subject: [PATCH] feat: init check workflows --- .github/workflows/check.yml | 19 +++++++++++++++++++ .github/workflows/fmt.yml | 20 ++++++++++++++++++++ 2 files changed, 39 insertions(+) diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 8b13789..a5e7972 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -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 diff --git a/.github/workflows/fmt.yml b/.github/workflows/fmt.yml index 8b13789..d785f5b 100644 --- a/.github/workflows/fmt.yml +++ b/.github/workflows/fmt.yml @@ -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 .