-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (34 loc) · 845 Bytes
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: CI
on:
pull_request:
branches: [ master ]
jobs:
build:
strategy:
matrix:
go-version: [1.21.x]
platform: [ubuntu-latest]
test-type: [unit, integration]
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
- name: unit tests
if: matrix.test-type == 'unit'
run: |
go test ./rpc ./internal/...
- name: integration tests
if: matrix.test-type == 'integration'
run: |
go test ./cmd/...