Skip to content

ci: add ci tests

ci: add ci tests #7

Workflow file for this run

name: CI
on:
pull_request:
branches: [ master ]
jobs:
build:
name: build
strategy:
matrix:
go-version: [1.21.x]
platform: [ubuntu-latest]
runs-on: ${{ matrix.platform }}
steps:
- name: install Go
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go-version }}
- name: checkout code
uses: actions/checkout@v2
with:
fetch-depth: 1
- name: non-Go dependencies
if: matrix.platform == 'ubuntu-latest'
run: |
sudo apt-get update
sudo apt-get install -qq libudev-dev
- uses: dominikh/[email protected]
with:
version: "2022.1.3"
- name: unit tests
run: |
go test ./rpc ./internal/...