From b8683080aa4b6b8e9398e8c8faeecce4d6def305 Mon Sep 17 00:00:00 2001 From: Edward McFarlane Date: Thu, 22 Feb 2024 09:54:07 +0000 Subject: [PATCH 1/4] Fix missing action.yaml runtime upgrade --- action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/action.yml b/action.yml index 8a9f262..bc0e7fc 100644 --- a/action.yml +++ b/action.yml @@ -31,5 +31,5 @@ outputs: results: description: "The generated breaking change messages with the file annotations." runs: - using: "node16" + using: "node20" main: "./dist/main.js" From 554e87038a66e2aa9d9a73cd02770957d555240b Mon Sep 17 00:00:00 2001 From: Edward McFarlane Date: Thu, 22 Feb 2024 10:04:28 +0000 Subject: [PATCH 2/4] Run action as part of CI --- .github/workflows/ci.yaml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index d25f5cb..7f8d80b 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -17,7 +17,7 @@ jobs: with: fetch-depth: 1 - name: Install Go - uses: actions/setup-go@v4 + uses: actions/setup-go@v5 with: go-version: 1.22 - name: Install Node @@ -28,3 +28,9 @@ jobs: run: make generate && make checkgenerate - name: Build run: make build && make checkgenerate + - uses: bufbuild/buf-setup-action@v1.29.0-1 + - run: | + echo "version: v1" >> buf.yaml + echo 'syntax = "proto3"; message A { string a = 1; }' >> test.proto + - name: Validate Action + uses: ./ From e9a574e3d5bd7a143403b534f218cd9a3614cb57 Mon Sep 17 00:00:00 2001 From: Edward McFarlane Date: Thu, 22 Feb 2024 10:13:42 +0000 Subject: [PATCH 3/4] Fix check --- .github/workflows/ci.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 7f8d80b..af72ce7 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -34,3 +34,5 @@ jobs: echo 'syntax = "proto3"; message A { string a = 1; }' >> test.proto - name: Validate Action uses: ./ + with: + against: . From 8cb4f378713f89d1fbb270d36b42955f682ab85a Mon Sep 17 00:00:00 2001 From: Edward McFarlane Date: Thu, 22 Feb 2024 16:16:31 +0000 Subject: [PATCH 4/4] Name CI steps --- .github/workflows/ci.yaml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index af72ce7..e11b3f3 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -28,8 +28,10 @@ jobs: run: make generate && make checkgenerate - name: Build run: make build && make checkgenerate - - uses: bufbuild/buf-setup-action@v1.29.0-1 - - run: | + - name: Install Buf + uses: bufbuild/buf-setup-action@v1 + - name: Setup Test + run: | echo "version: v1" >> buf.yaml echo 'syntax = "proto3"; message A { string a = 1; }' >> test.proto - name: Validate Action