Skip to content

Commit

Permalink
build(ci): Integrate codegen into GH CI (#8)
Browse files Browse the repository at this point in the history
Signed-off-by: jannfis <[email protected]>
  • Loading branch information
jannfis authored Feb 21, 2024
1 parent d9f1ce9 commit c02a3cc
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,26 @@ jobs:
go mod tidy
git diff --exit-code -- .
codegen:
name: Check for changes to generated code
runs-on: ubuntu-22.04
steps:
- name: Checkout code
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: Setup Golang
uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
with:
go-version: ${{ env.GOLANG_VERSION }}
- name: Download all Go modules
run: |
go mod download
- name: Run codegen
run: |
make codegen
- name: Check for changes
run: |
git diff --exit-code -- .
build-go:
name: Build & cache Go code
runs-on: ubuntu-22.04
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ test/out
test/profile
vendor/
.vscode
build/

0 comments on commit c02a3cc

Please sign in to comment.