chore: release 0.42.0fake #1608
Workflow file for this run
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: Build and test | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
env: | |
GO111MODULE: on | |
concurrency: | |
# Cancel previous workflows on branch push | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
build: | |
name: Build and test | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out source code | |
uses: actions/checkout@v4 | |
- name: Install Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: 1.21.x | |
- name: Cache Go modules | |
uses: actions/cache@v4 | |
with: | |
path: ~/go/pkg/mod | |
key: build-${{ hashFiles('**/go.sum') }} | |
- name: Install protobuf codegen tool | |
run: | | |
curl -LO https://github.com/protocolbuffers/protobuf/releases/download/v3.14.0/protoc-3.14.0-linux-x86_64.zip | |
unzip protoc-3.14.0-linux-x86_64.zip -d $HOME/.local | |
echo "$HOME/.local/bin" >> $GITHUB_PATH | |
- name: Install go tools | |
run: | | |
cd /tmp | |
go install google.golang.org/protobuf/cmd/[email protected] | |
go install google.golang.org/grpc/cmd/[email protected] | |
go install github.com/vektra/mockery/[email protected] | |
go install golang.org/x/tools/cmd/goimports@latest | |
- name: Build | |
run: make | |
- name: Lint | |
run: make lint-goimports | |
- name: Test | |
run: make test |