-
Notifications
You must be signed in to change notification settings - Fork 1
48 lines (38 loc) · 1013 Bytes
/
ci.yaml
File metadata and controls
48 lines (38 loc) · 1013 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
36
37
38
39
40
41
42
43
44
45
46
47
48
---
name: CI
# This is the default event from the go-project-template
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6
with:
go-version-file: ./go.mod
- name: Install dependencies
run: |
go mod download
go mod verify
- name: Check imports
run: make check-imports
- name: golangci-lint
uses: golangci/golangci-lint-action@1e7e51e771db61008b38414a730f564565cf7c20 # v9
with:
version: v2.11.4
- name: Run tests
run: go test -race -cover -v ./...
- name: Run benchmarks
run: go test -bench=. ./...
- name: Run fuzz tests
run: make fuzz