Use CryptoKeyVersion name as resource name #90
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: Run all tests | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
run-go-tests: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out sources | |
uses: actions/checkout@v2 | |
- name: Install Protobuf Compiler | |
uses: arduino/setup-protoc@v1 | |
with: | |
version: '3.x' | |
- name: Set up Go environment | |
uses: actions/setup-go@v2 | |
with: | |
go-version: '^1.20' | |
- name: Set up Protobuf Compiler in Go environment | |
run: | | |
go install google.golang.org/protobuf/cmd/[email protected] | |
go install google.golang.org/grpc/cmd/[email protected] | |
- name: Generate protobuf language bindings | |
run: | | |
make all | |
- name: Build all sources | |
run: | | |
go build ./... | |
- name: Run all tests | |
run: | | |
go test ./... | |
run-bazel-tests: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out sources | |
uses: actions/checkout@v2 | |
- name: Set up Bazel environment | |
uses: bazelbuild/setup-bazelisk@v1 | |
- name: Mount Bazel cache | |
uses: actions/cache@v2 | |
with: | |
path: "~/.cache/bazel" | |
key: bazel | |
- name: Build all sources | |
run: | | |
bazel build //... | |
- name: Run all tests | |
run: | | |
bazel test --test_output=errors //... |