Skip to content

Merge pull request #283 from veraison/greg-bug #2432

Merge pull request #283 from veraison/greg-bug

Merge pull request #283 from veraison/greg-bug #2432

Workflow file for this run

# GitHub Actions - CI for Go to build & test. See ci-go-cover.yml and linters.yml for code coverage and linters.
# Stolen from: https://github.com/fxamacker/cbor/workflows/ci.yml (thanks!)
name: ci
on: [push, pull_request]
jobs:
tests:
name: Test on ubuntu-latest
runs-on: ubuntu-latest
env:
GO111MODULE: on
CI_PIPELINE: true
steps:
- uses: actions/setup-go@v3
with:
go-version: "1.22"
- name: Checkout code
uses: actions/checkout@v2
- name: Install mockgen
run: |
go install github.com/golang/mock/[email protected]
- name: Install gopls
run: |
go install golang.org/x/tools/gopls@latest
- name: Install guru
run: |
go install golang.org/x/tools/cmd/guru@latest
- name: Install Protoc
uses: arduino/setup-protoc@v1
with:
version: '3.x'
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: protoc-gen deps
run: |
go install google.golang.org/protobuf/cmd/[email protected]
go install google.golang.org/grpc/cmd/[email protected]
go install github.com/mitchellh/[email protected]
- name: Build project
run: |
make
- name: Run tests
run: |
go version
make -w test CI_PIPELINE=${{ env.CI_PIPELINE }}