ci: add modcheck github workflow

Add a new github workflow to verify with mod check.

Signed-off-by: Sébastien Han <seb@redhat.com>
This commit is contained in:
Sébastien Han committed 2020-08-27 12:15:41 +02:00
1 parent e40b462216
commit 58c8de95be
5 files changed
+60 -14

No files matched your search

+1 -1
View File
@@ -16,5 +16,5 @@ jobs:
run: GOPATH=$(go env GOPATH) make codegen
- name: validate codegen
run: hack/validate-codegen.sh
run: hack/validate_modified_files.sh codegen
+20
View File
@@ -0,0 +1,20 @@
name: Mod check
on: [pull_request]
jobs:
modcheck:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v1
- uses: actions/setup-go@v2
with:
go-version: 1.13
- name: run mod check
run: GOPATH=$(go env GOPATH) make -j $(nproc) mod.check
- name: validate modcheck
run: hack/validate_modified_files.sh modcheck