-
Notifications
You must be signed in to change notification settings - Fork 19
48 lines (47 loc) · 1.46 KB
/
test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
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