-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (36 loc) · 1.28 KB
/
check.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
name: Execute automated checks
on:
- push
jobs:
# https://github.com/golangci/golangci-lint-action#how-to-use
go-lint:
name: Lint go code
runs-on: ubuntu-latest
steps:
- name: Checkout git repo
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
# renovate: datasource=github-releases depName=golang/go
go-version: "1.23"
- name: Lint go code with golangci-lint
uses: golangci/golangci-lint-action@v6
with:
# Required: the version of golangci-lint is required and must be specified without patch version: we always use the latest patch version.
version: v1.56.2
go-test:
name: Verify go tests
runs-on: ubuntu-latest
steps:
- name: Checkout git repo
uses: actions/checkout@v4
- name: Setup golang
uses: actions/setup-go@v5
with:
# renovate: datasource=github-releases depName=golang/go
go-version: "1.23"
- name: Print go version
run: go version
- name: Execute go tests
run: go test -v ./...