Skip to content

Commit

Permalink
gh action tweak (#25)
Browse files Browse the repository at this point in the history
  • Loading branch information
qrort authored Jul 23, 2024
1 parent 3fbbda1 commit b2c9e1e
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 5 deletions.
29 changes: 25 additions & 4 deletions .github/workflows/go-test.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
name: Go
name: Run YDBCP tests

on:
push:
pull_request:
branches: [main]
types: [opened, synchronize, reopened]

jobs:
test:
runs-on: ubuntu-latest
Expand All @@ -15,11 +16,31 @@ jobs:
with:
go-version-file: go.mod

- 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 all
run: make

- name: Build
run: go build -v ./...
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 }}
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ require (
github.com/ydb-platform/ydb-go-sdk/v3 v3.74.2
go.uber.org/automaxprocs v1.5.3
go.uber.org/zap v1.27.0
google.golang.org/grpc v1.64.0
google.golang.org/grpc v1.64.1
google.golang.org/protobuf v1.34.1
gopkg.in/yaml.v3 v3.0.1
)
Expand Down

0 comments on commit b2c9e1e

Please sign in to comment.