-
Notifications
You must be signed in to change notification settings - Fork 2
35 lines (27 loc) · 787 Bytes
/
Copy pathci.yml
File metadata and controls
35 lines (27 loc) · 787 Bytes
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
name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test:
name: build / vet / test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Set up Go
uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0
with:
go-version: '1.24.4'
cache: true
- name: Build
run: go build ./...
- name: Vet
run: go vet ./...
- name: Test (race + cover)
run: go test -race -coverprofile=cover.out ./...
- name: Coverage summary
run: go tool cover -func=cover.out
- name: Fuzz smoke (10s)
run: go test -run=^$ -fuzz=FuzzProtocolDecode -fuzztime=10s ./feetech