Skip to content

build(deps): bump goreleaser/goreleaser-action from 7.2.1 to 7.2.2 #14289

build(deps): bump goreleaser/goreleaser-action from 7.2.1 to 7.2.2

build(deps): bump goreleaser/goreleaser-action from 7.2.1 to 7.2.2 #14289

Workflow file for this run

# SPDX-FileCopyrightText: Copyright 2023 The Minder Authors
# SPDX-License-Identifier: Apache-2.0
name: Code Generation
on:
push:
branches:
- main
- release-*
paths-ignore:
- "**.md"
- "docs/**"
- "**.txt"
- "images/**"
- "LICENSE"
pull_request:
branches:
- main
paths-ignore:
- "**.md"
- "docs/**"
- "**.txt"
- "images/**"
- "LICENSE"
jobs:
lint-protos:
runs-on: ubuntu-latest
steps:
# Run `git checkout`
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
# Install the `buf` CLI
- uses: bufbuild/buf-action@fd21066df7214747548607aaa45548ba2b9bc1ff # v1.4.0
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
push: false
archive: false
pr_comment: false
lint: true
format: false
breaking: false # Check for breaking changes in the next step
proto-breaking-changes:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: bufbuild/buf-action@fd21066df7214747548607aaa45548ba2b9bc1ff # v1.4.0
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
push: false
archive: false
pr_comment: false
format: false
breaking: true
input: 'proto'
breaking_against: "https://github.com/mindersec/minder.git#branch=main,subdir=proto"
sqlc-generation:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Set up Go
uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0
with:
go-version-file: "go.mod"
- name: Make bootstrap
run: |
make bootstrap
- name: Generate Go code from SQL and check for syntax errors
shell: bash
run: |
make sqlc
- name: Check for uncommitted SQLC changes
run: |
git diff --exit-code || (echo "Error: Uncommitted changes detected after running 'sqlc generate'. Please commit the changes and try again." && exit 1)