ci/cd: refactor #14
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: tests | |
on: | |
push: | |
branches: [ "dev" ] | |
pull_request: | |
branches: [ "master", "dev" ] | |
workflow_dispatch: | |
env: | |
GOLANG_PROTOBUF_REGISTRATION_CONFLICT: ignore | |
jobs: | |
run_tests: | |
runs-on: ubuntu-latest | |
steps: | |
- name: clone repo | |
uses: actions/checkout@v3 | |
- name: download and install | |
uses: actions/setup-go@v5 | |
with: | |
go-version: '1.22.5' | |
- name: install protobuf | |
run: | | |
sudo apt update | |
sudo apt install protobuf-compiler | |
- name: go_ins_1 | |
run: go install google.golang.org/protobuf/cmd/protoc-gen-go@latest | |
- name: go_ins_2 | |
run: go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@latest | |
- name: generate | |
run: go generate ./... | |
- name: check version | |
run: go version | |
- name: check folder | |
run: ls | |
- name: do tests | |
run: go test -v ./... |