* build(deps): bump actions/setup-go in the actions group Bumps the actions group with 1 update: [actions/setup-go](https://github.com/actions/setup-go). Updates `actions/setup-go` from 5.5.0 to 6.0.0 - [Release notes](https://github.com/actions/setup-go/releases) - [Commits](https://github.com/actions/setup-go/compare/d35c59abb061a4a6fb18e82ac0862c26744d6ab5...44694675825211faa026b3c33043df3e48a5fa00) --- updated-dependencies: - dependency-name: actions/setup-go dependency-version: 6.0.0 dependency-type: direct:production update-type: version-update:semver-major dependency-group: actions ... Signed-off-by: dependabot[bot] <support@github.com> * Update Go version --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Johan Brandhorst-Satzkorn <johan.brandhorst@gmail.com>
44 lines
1.2 KiB
YAML
44 lines
1.2 KiB
YAML
name: "make-gen-delta"
|
|
on:
|
|
- workflow_dispatch
|
|
- push
|
|
- pull_request
|
|
- workflow_call
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
make-gen-delta:
|
|
name: "Check for uncommitted changes from make gen"
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
|
with:
|
|
fetch-depth: '0'
|
|
- name: Determine Go version
|
|
id: get-go-version
|
|
# We use .go-version as our source of truth for current Go
|
|
# version, because "goenv" can react to it automatically.
|
|
run: |
|
|
echo "Building with Go $(cat .go-version)"
|
|
echo "go-version=$(cat .go-version)" >> "$GITHUB_OUTPUT"
|
|
- name: Set up Go
|
|
uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6.0.0
|
|
with:
|
|
go-version: "${{ steps.get-go-version.outputs.go-version }}"
|
|
- name: Running go mod tidy
|
|
run: |
|
|
go mod tidy
|
|
- name: Install Dependencies
|
|
run: |
|
|
make tools
|
|
- name: Running make gen
|
|
run: |
|
|
make gen
|
|
- name: Check for changes
|
|
run: |
|
|
git diff --exit-code
|
|
git status --porcelain
|
|
test -z "$(git status --porcelain)"
|