Skip to content

Commit 1a4f4de

Browse files
committed
Add golangci-lint to GHA
1 parent 09cb99b commit 1a4f4de

File tree

1 file changed

+23
-5
lines changed

1 file changed

+23
-5
lines changed

.github/workflows/test.yaml

+23-5
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,30 @@ jobs:
2020
docker-compose up -d minio db redis &&
2121
docker-compose up -d cworker conductor &&
2222
docker-compose up minio-prepare
23-
- uses: actions/setup-go@v3
23+
- uses: actions/setup-go@v5
2424
with:
25-
go-version: '1.20.x'
26-
id: go
27-
- name: Install ffmpeg
28-
uses: FedericoCarboni/setup-ffmpeg@v1-beta
25+
go-version: '1.20'
26+
- uses: FedericoCarboni/setup-ffmpeg@v3
2927
id: setup-ffmpeg
28+
with:
29+
ffmpeg-version: "6.1.0"
3030
- name: Run tests
3131
run: go test -covermode=count -coverprofile=coverage.out ./...
32+
golangci:
33+
name: lint
34+
runs-on: ubuntu-latest
35+
steps:
36+
- uses: actions/checkout@v4
37+
with:
38+
fetch-depth: 0
39+
- uses: actions/setup-go@v5
40+
with:
41+
go-version: '1.20'
42+
cache: false
43+
- name: golangci-lint
44+
uses: golangci/golangci-lint-action@v4
45+
with:
46+
# Require: The version of golangci-lint to use.
47+
# When `install-mode` is `binary` (default) the value can be v1.2 or v1.2.3 or `latest` to use the latest version.
48+
# When `install-mode` is `goinstall` the value can be v1.2.3, `latest`, or the hash of a commit.
49+
version: v1.56

0 commit comments

Comments
 (0)