Skip to content

ci/cd: refactor

ci/cd: refactor #14

Workflow file for this run

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 ./...