From 01145b53d4269cd0be7fd821ec73581b27f3cc45 Mon Sep 17 00:00:00 2001 From: Ryan Lymburner Date: Tue, 3 Jun 2025 13:52:47 -0700 Subject: [PATCH 1/2] Correct Dependabot to run "make presubmit" before creating PRs --- ...abot-go-mod-tidy.yml => dependabot-make-presubmit.yml} | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) rename .github/workflows/{dependabot-go-mod-tidy.yml => dependabot-make-presubmit.yml} (88%) diff --git a/.github/workflows/dependabot-go-mod-tidy.yml b/.github/workflows/dependabot-make-presubmit.yml similarity index 88% rename from .github/workflows/dependabot-go-mod-tidy.yml rename to .github/workflows/dependabot-make-presubmit.yml index 1654c10b..92447c68 100644 --- a/.github/workflows/dependabot-go-mod-tidy.yml +++ b/.github/workflows/dependabot-make-presubmit.yml @@ -1,4 +1,4 @@ -name: Dependabot Go Mod Tidy +name: Dependabot Make Presubmit on: pull_request: @@ -26,9 +26,9 @@ jobs: with: go-version: '1.x' - - name: Run go mod tidy + - name: Run make presubmit run: | - go mod tidy + make presubmit - name: Check for changes id: git-check @@ -46,5 +46,5 @@ jobs: git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com" git config --local user.name "github-actions[bot]" git add go.mod go.sum - git commit -m "Run go mod tidy for Dependabot PR" + git commit -m "Run make presubmit for Dependabot PR" git push From 13bbe7e6d95d26afbdbe36e7da3011acf070c631 Mon Sep 17 00:00:00 2001 From: Ryan Lymburner Date: Tue, 3 Jun 2025 14:14:52 -0700 Subject: [PATCH 2/2] Add test files --- .github/workflows/dependabot-make-presubmit.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/dependabot-make-presubmit.yml b/.github/workflows/dependabot-make-presubmit.yml index 92447c68..44318c91 100644 --- a/.github/workflows/dependabot-make-presubmit.yml +++ b/.github/workflows/dependabot-make-presubmit.yml @@ -5,6 +5,8 @@ on: paths: - 'go.mod' - 'go.sum' + - 'test/go.mod' + - 'test/go.sum' permissions: contents: write @@ -45,6 +47,6 @@ jobs: run: | git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com" git config --local user.name "github-actions[bot]" - git add go.mod go.sum + git add go.mod go.sum test/go.mod test/go.sum git commit -m "Run make presubmit for Dependabot PR" git push