Skip to content

Commit deceb88

Browse files
committed
chore: fix CI
1 parent dbc4f2f commit deceb88

File tree

3 files changed

+28
-12
lines changed

3 files changed

+28
-12
lines changed

.github/workflows/lint.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: golangci-lint
1+
name: lint
22
on:
33
push:
44
branches:
@@ -11,14 +11,15 @@ permissions:
1111
# pull-requests: read
1212

1313
jobs:
14-
golangci:
15-
name: lint
14+
lint:
1615
runs-on: ubuntu-latest
16+
container: ghcr.io/hybridgroup/opencv:4.12.0
1717
steps:
1818
- uses: actions/checkout@v5
1919
- uses: actions/setup-go@v6
2020
with:
2121
go-version: stable
22+
2223
- name: golangci-lint
2324
uses: golangci/golangci-lint-action@v8
2425
with:

.github/workflows/test.yml

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,10 @@ on:
99
jobs:
1010
test:
1111
runs-on: ubuntu-latest
12+
container: ghcr.io/hybridgroup/opencv:4.12.0
1213
strategy:
1314
matrix:
14-
go-version: ['1.23.x', '1.24.x']
15+
go-version: ['1.24.x']
1516

1617
steps:
1718
- uses: actions/checkout@v5
@@ -20,14 +21,6 @@ jobs:
2021
go-version: ${{ matrix.go-version }}
2122
cache: true
2223

23-
# - name: Install OpenCV
24-
# run: |
25-
# sudo apt-get update
26-
# sudo apt-get install -y \
27-
# libopencv-dev \
28-
# libopencv-contrib-dev \
29-
# pkg-config
30-
3124
- name: go mod download
3225
run: go mod download
3326

.golangci.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
version: "2"
2+
3+
run:
4+
timeout: 5m
5+
6+
linters:
7+
enable:
8+
- errcheck
9+
- gosimple
10+
- govet
11+
- ineffassign
12+
- staticcheck
13+
- unused
14+
15+
exclusions:
16+
rules:
17+
- path: _test\.go
18+
linters: [errcheck]
19+
20+
issues:
21+
max-issues-per-linter: 0
22+
max-same-issues: 0

0 commit comments

Comments
 (0)