From c57b3d842a5c3f3b454756ef65305a50a587c5ba Mon Sep 17 00:00:00 2001 From: Edward McFarlane <3036610+emcfarlane@users.noreply.github.com> Date: Thu, 22 Feb 2024 17:12:46 +0000 Subject: [PATCH] Test action in CI (#122) This PR ensures CI runs the action built from this commit. We generate a dummy proto file to check validate can run to completion. Also included is a fix for `action.yaml` which missed the runtime requirement for `node20`. --- .github/workflows/ci.yaml | 12 +++++++++++- action.yml | 2 +- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index d25f5cb..e11b3f3 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,13 @@ jobs: run: make generate && make checkgenerate - name: Build run: make build && make checkgenerate + - 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 + uses: ./ + with: + against: . 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"