-
Notifications
You must be signed in to change notification settings - Fork 5
47 lines (45 loc) · 990 Bytes
/
go.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
43
44
45
46
47
name: Go
on:
pull_request:
paths-ignore:
- 'images/**'
- '**/*.md'
branches:
- main
push:
paths-ignore:
- 'images/**'
- '**/*.md'
branches:
- main
jobs:
lint:
name: Run linting
runs-on: ubuntu-latest
steps:
- uses: actions/setup-go@v3
with:
go-version: 1.21.x
- uses: actions/checkout@v3
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: 'latest'
args: -c ./golangci.yml
- name: Format lint
run: |
make install-tools && make format && git diff --quiet
test:
name: Run tests
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
steps:
- uses: actions/checkout@v3
- name: Setup go
uses: actions/setup-go@v3
with:
go-version: 1.21.x
- name: Run Tests
run: make test-verbose