Skip to content

Commit

Permalink
Test action in CI (#122)
Browse files Browse the repository at this point in the history
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`.
  • Loading branch information
emcfarlane authored Feb 22, 2024
1 parent 03078a3 commit c57b3d8
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
12 changes: 11 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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: .
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"

0 comments on commit c57b3d8

Please sign in to comment.