Skip to content

Commit

Permalink
Install dependecies.
Browse files Browse the repository at this point in the history
  • Loading branch information
masv3971 committed Oct 13, 2023
1 parent 7f9e179 commit 85f417b
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,19 @@ jobs:
uses: actions/setup-go@v4
with:
go-version-file: go.mod
cache-dependency-path: "**/*.sum"

- name: Install deb packages
uses: awalsh128/cache-apt-pkgs-action@latest
with:
packages: protobuf-compiler
version: 1.0

- name: Install go packages
run: |
go install google.golang.org/protobuf/cmd/[email protected]
go install google.golang.org/grpc/cmd/[email protected]
export PATH="$PATH:$(go env GOPATH)/bin"
- name: Build
run: |
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ jobs:
uses: actions/setup-go@v4
with:
go-version-file: go.mod
cache-dependency-path: "**/*.sum"

- name: Run tests
run: |
make test

0 comments on commit 85f417b

Please sign in to comment.