-
Notifications
You must be signed in to change notification settings - Fork 11
40 lines (40 loc) · 905 Bytes
/
test.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
---
name: Test
"on":
push:
tags:
- v*
branches:
- main
pull_request: null
jobs:
test:
name: Test
timeout-minutes: 15
runs-on: ubuntu-latest
strategy:
matrix:
go-version:
- "1.18"
- "1.19"
- "1.20"
- "1.21"
- "1.22"
- "1.23"
- "1.24"
steps:
- name: Setup Go
uses: actions/setup-go@v5.3.0
with:
go-version: ${{ matrix.go-version }}
- name: Checkout
uses: actions/checkout@v4.2.2
- name: Test
run: make test
- name: Read golangci-lint version from file
id: golangci-lint-version
run: echo "version=$(cat .golangci-version)" >> $GITHUB_OUTPUT
- name: Lint
uses: golangci/golangci-lint-action@v6.5.0
with:
version: ${{ steps.golangci-lint-version.outputs.version }}