Skip to content

Commit

Permalink
.github: run Go prechecks as GitHub action
Browse files Browse the repository at this point in the history
Run `make precheck` as a GitHub action. This checks various formatting
and package usage issues in Go code.

Fixes #11730

Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
  • Loading branch information
tklauser authored and aanm committed Jul 28, 2020
1 parent bb91571 commit 8d56d06
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/go-check.yaml
Expand Up @@ -32,6 +32,23 @@ jobs:
with:
version: v1.27

precheck:
runs-on: ubuntu-latest
steps:
- name: Install Go
uses: actions/setup-go@v1
with:
go-version: 1.14.6
- name: Checkout code
uses: actions/checkout@v2
with:
# hard-code the path instead of using ${{ github.repository }} to make sure it works for forked repo as well
path: src/github.com/cilium/cilium
- name: Go code prechecks
run: |
cd src/github.com/cilium/cilium
make precheck
generate-api:
runs-on: ubuntu-latest
steps:
Expand Down

0 comments on commit 8d56d06

Please sign in to comment.