Skip to content

Commit e2037c6

Browse files
committed
Fix CI testing
1 parent 037b03d commit e2037c6

File tree

2 files changed

+25
-3
lines changed

2 files changed

+25
-3
lines changed

.github/workflows/test-build.yml

Lines changed: 23 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
name: Test and Build
22

3+
env:
4+
GOLANG_VERSION: 1.25
5+
36
on:
47
push:
58
branches:
@@ -21,9 +24,26 @@ jobs:
2124
- name: Checkout
2225
uses: actions/checkout@v4
2326

24-
- uses: actions/setup-python@v3
27+
- name: Install python
28+
uses: actions/setup-python@v3
29+
30+
- name: Install golang
31+
uses: actions/setup-go@v5
32+
with:
33+
go-version: ${{ env.GOLANG_VERSION }}
34+
35+
- name: Install GoReleaser
36+
uses: goreleaser/goreleaser-action@v6
37+
with:
38+
install-only: true
39+
40+
- name: Run golangci-lint
41+
uses: golangci/golangci-lint-action@v8
42+
with:
43+
version: v2.1
2544

26-
- uses: pre-commit/action@v3.0.0
45+
- name: Run pre-commit checks
46+
uses: pre-commit/action@v3.0.0
2747
with:
2848
extra_args: "--all-files --hook-stage manual"
2949

@@ -42,7 +62,7 @@ jobs:
4262
- name: Set up Go
4363
uses: actions/setup-go@v5
4464
with:
45-
go-version: '1.25'
65+
go-version: ${{ env.GOLANG_VERSION }}
4666

4767
- name: Install GoReleaser
4868
uses: goreleaser/goreleaser-action@v6

.pre-commit-config.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@ repos:
1919
rev: v2.5.0
2020
hooks:
2121
- id: golangci-lint-full
22+
stages: [pre-commit]
2223
- id: golangci-lint-fmt
24+
stages: [pre-commit]
2325
- repo: https://github.com/pre-commit/pre-commit-hooks
2426
rev: v6.0.0
2527
hooks:

0 commit comments

Comments
 (0)