From cf9aca22ba29defd41b6df3b64541eb71a7967de Mon Sep 17 00:00:00 2001 From: adisbladis Date: Sun, 29 May 2022 15:52:59 +0800 Subject: [PATCH] actions: Add check to see if gomod2nix.toml is up to date --- .github/workflows/ci.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9170e86..e511524 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -19,6 +19,20 @@ jobs: - name: Check format run: nix-shell --run 'nixpkgs-fmt --check .' + gomod2nix_toml: + runs-on: ubuntu-latest + env: + NIX_PATH: "nixpkgs=https://github.com/NixOS/nixpkgs/archive/nixos-unstable.tar.gz" + steps: + - uses: cachix/install-nix-action@v12 + - uses: actions/checkout@v1 + - name: "Build gomod2nix" + run: nix-shell --run "go build" + - name: Run gomod2nix + run: nix-shell --run gomod2nix + - name: Check diff + run: git diff --exit-code gomod2nix.toml + list-jobs: runs-on: ubuntu-latest outputs: