Merge pull request #332 from DataDog/vboulineau/embed-proto #1242
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test | |
on: [push, pull_request] | |
jobs: | |
test: | |
name: "rake test" | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: "/home/runner/work/agent-payload/agent-payload/go/src/github.com/DataDog/agent-payload" | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
path: go/src/github.com/DataDog/agent-payload | |
- name: "Install ruby" | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: head | |
- name: Install go | |
uses: actions/setup-go@v3 | |
with: | |
go-version-file: "/home/runner/work/agent-payload/agent-payload/go/src/github.com/DataDog/agent-payload/go.mod" | |
- run: rake test | |
env: | |
GOPATH: "/home/runner/work/agent-payload/agent-payload/go" | |
codegen: | |
name: "rake codegen" | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: "/home/runner/work/agent-payload/agent-payload/go/src/github.com/DataDog/agent-payload" | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
path: go/src/github.com/DataDog/agent-payload | |
- name: "Install ruby" | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: head | |
- name: Install go | |
uses: actions/setup-go@v3 | |
with: | |
go-version-file: "/home/runner/work/agent-payload/agent-payload/go/src/github.com/DataDog/agent-payload/go.mod" | |
- run: rake codegen | |
env: | |
GOPATH: "/home/runner/work/agent-payload/agent-payload/go" | |
- name: Check for diffs | |
run: git diff --exit-code |