Skip to content

ci: add ci tests

ci: add ci tests #9

Workflow file for this run

name: CI
on:
pull_request:
branches: [ master ]
jobs:
checkout:
steps:

Check failure on line 9 in .github/workflows/ci.yml

View workflow run for this annotation

GitHub Actions / CI

Invalid workflow file

The workflow is not valid. .github/workflows/ci.yml (Line: 9, Col: 5): Required property is missing: runs-on
- name: checkout code
uses: actions/checkout@v2
with:
fetch-depth: 1
build:
needs: checkout
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: non-Go dependencies
if: matrix.platform == 'ubuntu-latest'
run: |
sudo apt-get update
sudo apt-get install -qq libudev-dev
- name: unit tests
run: |
go test ./rpc ./internal/...