add redis gateway/twirp/middleware #64
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: Go Tests | |
on: | |
push: | |
branches: | |
- v2 | |
- dev | |
env: | |
WORKFLOW: true | |
jobs: | |
run: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
go-version: [ '1.21.x' ] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Go ${{ matrix.go-version }} | |
uses: actions/setup-go@v4 | |
with: | |
go-version: ${{ matrix.go-version }} | |
- name: Install Task | |
uses: arduino/setup-task@v1 | |
with: | |
version: 3.x | |
- name: Install Cargo | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: stable | |
- name: Install Protoc | |
uses: arduino/setup-protoc@v2 | |
- name: Install protoc plugins | |
run: go install github.com/twitchtv/twirp/protoc-gen-twirp@latest && go install google.golang.org/protobuf/cmd/[email protected] && go install google.golang.org/grpc/cmd/[email protected] | |
- name: Run Task compile twirp | |
run: task protoc-twirp-go | |
- name: Run Task compile grpc | |
run: task grpc-go | |
- name: Run tests | |
run: task go-test |