actions: Add check to see if gomod2nix.toml is up to date
This commit is contained in:
parent
7c36ecab4d
commit
cf9aca22ba
1 changed files with 14 additions and 0 deletions
14
.github/workflows/ci.yml
vendored
14
.github/workflows/ci.yml
vendored
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue