Skip to content

Commit

Permalink
ci: add ci tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kortschak committed Dec 16, 2023
1 parent 3a1c564 commit bfdf84f
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: CI

on:
pull_request:
branches: [ master ]

jobs:
checkout:
steps:
- 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/...

0 comments on commit bfdf84f

Please sign in to comment.