-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (35 loc) · 917 Bytes
/
ci.yml
File metadata and controls
42 lines (35 loc) · 917 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
name: ci
on: [push, pull_request]
jobs:
ci:
runs-on: ${{ matrix.os }}
timeout-minutes: 30
strategy:
matrix:
go: ["^1.17"]
os: [ubuntu-latest, macOS-latest, windows-latest]
name: Go ${{ matrix.go }} in ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
submodules: true
- uses: actions/setup-go@v2
with:
stable: '!contains(${{ matrix.go }}, "beta") && !contains(${{ matrix.go }}, "rc")'
go-version: ${{ matrix.go }}
- name: Environment
run: |
go version
go env
- name: Lint
uses: golangci/golangci-lint-action@v2
with:
version: v1.42.1
args: --timeout=5m30s
skip-go-installation: true
- name: Format
run: make format-check
- name: Test
run: |
make test