-
Notifications
You must be signed in to change notification settings - Fork 3
49 lines (39 loc) · 1.17 KB
/
go-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
49
name: Run YDBCP tests
on:
pull_request:
branches: [main]
types: [opened, synchronize, reopened]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
- name: Install Protoc
uses: arduino/setup-protoc@v3
- name: Install proto plugins
run: |
go install google.golang.org/protobuf/cmd/[email protected]
go install google.golang.org/grpc/cmd/[email protected]
- name: Compile protos
run: make proto
- name: Build
run: |
go mod tidy
go build -v ./...
- name: Test
uses: robherley/[email protected]
- uses: austenstone/[email protected]
id: job-summary
with:
create-pdf: false
- name: Comment on PR
uses: peter-evans/create-or-update-comment@v2
with:
token: ${{ secrets.GITHUB_TOKEN }}
repository: ${{ github.repository }}
issue-number: ${{ github.event.pull_request.number }}
body: ${{ steps.job-summary.outputs.job-summary }}