Skip to content

Commit 3cefb3b

Browse files
committed
chore: merge workflows
1 parent 355e782 commit 3cefb3b

File tree

2 files changed

+30
-31
lines changed

2 files changed

+30
-31
lines changed

.github/workflows/ci.yml

Lines changed: 30 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,37 @@ on:
66
- main
77
pull_request:
88

9+
permissions:
10+
contents: read
11+
12+
env:
13+
GOLANGCI_LINT_VERSION: v1.61.0
14+
915
jobs:
10-
build-lint-test:
11-
name: CI
16+
lint:
17+
name: Lint Go
18+
runs-on: ubuntu-latest
19+
steps:
20+
- name: Checkout
21+
uses: actions/checkout@v4
22+
23+
- name: Setup go
24+
uses: actions/setup-go@v5
25+
with:
26+
go-version-file: ./go.mod
27+
28+
- name: Run golangci-lint
29+
uses: golangci/golangci-lint-action@v6
30+
with:
31+
version: ${{env.GOLANGCI_LINT_VERSION}}
32+
args: |
33+
"./..." --timeout=7m
34+
skip-cache: true
35+
install-mode: binary
36+
37+
build-test:
38+
name: Build and Test
39+
needs: lint
1240
runs-on: ubuntu-latest
1341
steps:
1442
- name: Checkout

.github/workflows/go-lint.yml

Lines changed: 0 additions & 29 deletions
This file was deleted.

0 commit comments

Comments
 (0)