Merge pull request #20 from kcp-dev/issue-4 #56
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: generate | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
generate: | |
runs-on: [ubuntu-latest] | |
timeout-minutes: 8 | |
steps: | |
- name: Set up Go 1.x | |
uses: actions/setup-go@v4 | |
with: | |
go-version: ^1.19 | |
id: go | |
- name: Check out code | |
uses: actions/checkout@v3 | |
- name: ⚙️ Run Golang code generate | |
shell: bash | |
run: | | |
set -xe | |
make tools generate | |
[[ -z "$(git status -s)" ]] |