Skip to content

Only generate tests in CI #8

Only generate tests in CI

Only generate tests in CI #8

Workflow file for this run

name: build
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
path: gopath/github.com/katydid/testsuite
- name: Checkout gogoprotobuf
uses: actions/checkout@v4
with:
repository: gogo/protobuf
path: gopath/github.com/gogo/protobuf
- name: Setup Go
uses: actions/setup-go@v3
with:
go-version: 1.22
- name: Fetch dependencies
run: |
cd gopath/github.com/katydid/testsuite
go mod download -x
- name: Install tools
run: |
cd gopath/github.com/katydid/testsuite
go install -x github.com/gogo/protobuf/protoc-gen-gogo
- name: Setup protoc
run: |
cd gopath/github.com/katydid/testsuite
./install_protoc.sh
- name: Protoc version
run: |
cd gopath/github.com/katydid/testsuite
PATH=$HOME/bin:$PATH protoc --version
- name: env
run: env && go env && pwd
- name: tree
run: tree
- name: Generate Tests
run: |
cd gopath/github.com/katydid/testsuite
PATH=$HOME/bin:$PATH make regenerate-tests
- name: Build
run: |
cd gopath/github.com/katydid/testsuite
make build