Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build(ci): optional jobs must report success to merge PR #993

Merged
merged 11 commits into from
Dec 12, 2024
17 changes: 14 additions & 3 deletions .github/workflows/check-generated.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@
name: Check generated code
on:
pull_request:
paths:
- "**.go"
- "**.proto"
push:
branches:
- master
Expand All @@ -26,8 +23,16 @@ jobs:
go-version: "1.23.2"

- uses: actions/checkout@v4
with:
fetch-depth: 1 # we need a .git directory to run git diff

- uses: technote-space/get-diff-action@v6
with:
PATTERNS: |
**/*.go

- name: "Check generated mocks"
if: env.GIT_DIFF
run: |
set -euo pipefail

Expand Down Expand Up @@ -55,7 +60,13 @@ jobs:
with:
fetch-depth: 1 # we need a .git directory to run git diff

- uses: technote-space/get-diff-action@v6
with:
PATTERNS: |
**/*.proto

- name: "Check protobuf generated code"
if: env.GIT_DIFF
run: |
set -euo pipefail

Expand Down
Loading