-
Notifications
You must be signed in to change notification settings - Fork 4
48 lines (38 loc) · 937 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
48
---
name: Go
"on":
push:
branches: [main]
pull_request:
branches: [main, develop]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch: null
jobs:
build:
name: Build on ${{ matrix.os }} with Go ${{ matrix.go }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [macos-latest, windows-latest, ubuntu-latest]
go: ['1.20']
steps:
- name: Set up Go ${{ matrix.go }}
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go }}
id: go
- name: Check out code
uses: actions/checkout@v2
- name: Get dependencies
run: make deps
- name: Build
run: make build
- name: Tests
run: make test
- name: Lint
run: |
go install golang.org/x/lint/golint@latest
make lint
- name: Vet
run: make vet