-
Notifications
You must be signed in to change notification settings - Fork 1
45 lines (41 loc) · 911 Bytes
/
ci.yaml
File metadata and controls
45 lines (41 loc) · 911 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
43
44
45
name: check
on:
push:
branches:
- main
- master
pull_request:
env:
GO_VERSION: '1.24'
GO_LINT: 'v2.1.6'
permissions:
contents: read
jobs:
check_linter_version:
name: check golangci-lint version
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Check golangci-lint version
run: make lint-check-version
check:
runs-on: ubuntu-latest
needs: check_linter_version
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v6
with:
go-version: stable
- name: golangci-lint
uses: golangci/golangci-lint-action@v7
with:
version: ${{ env.GO_LINT }}
test:
name: go-test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v6
with:
go-version: ${{ env.GO_VERSION }}
- run: make test