Skip to content

Commit

Permalink
Adds github actions to run generate_and_test scipt (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
leeavital authored Jan 4, 2024
1 parent c0963a1 commit 19c5d72
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 1 deletion.
28 changes: 28 additions & 0 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Testing
run-name: ${{ github.actor }} is running tests on ${{ github.ref_name }}
on:
- push
jobs:
build_and_test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: "setup go"
uses: "actions/setup-go@v4"
with:
go-version: "1.21.5"
- name: Install Protoc
uses: arduino/setup-protoc@v2
with:
version: '25.1'

- name: build
run: go build -v ./...
- name: run codegen and check
run: |
go install github.com/golang/protobuf/protoc-gen-go
go install ./...
./generate_and_test

3 changes: 2 additions & 1 deletion run → generate_and_test
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
set -ex

mkdir -p example/output
go build .
go build .


plugin_path=$PWD/protoc-gen-gostreamer

Expand Down

0 comments on commit 19c5d72

Please sign in to comment.