-
Notifications
You must be signed in to change notification settings - Fork 6
37 lines (35 loc) · 1.07 KB
/
tests.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
name: Tests
on:
push:
branches:
- master
- v*
pull_request:
branches:
- master
- v*
jobs:
build:
strategy:
matrix:
go-version: ["1.15", "1.19", "1.20"]
runs-on: ubuntu-latest
steps:
- name: Install Go
uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32
with:
go-version: ${{ matrix.go-version }}
- name: Checkout code
uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871
- name: Run static checks
uses: golangci/golangci-lint-action@971e284b6050e8a5849b72094c50ab08da042db8
with:
version: v1.51.1
# use our .golangci.yml and configure output to be logged in the GHA, in addition to annotating the commit.
# see https://github.com/golangci/golangci-lint-action/issues/119#issuecomment-981090648 for output
args: --config=.golangci.yml --verbose --out-${NO_FUTURE}format colored-line-number --timeout 5m
skip-cache: true
- name: Build
run: go build
- name: Run unit tests
run: go test -v -race -cover