Skip to content

Commit fe5a3f1

Browse files
authored
Update ci.yml
1 parent 3cefb3b commit fe5a3f1

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

.github/workflows/ci.yml

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,25 @@ env:
1313
GOLANGCI_LINT_VERSION: v1.61.0
1414

1515
jobs:
16-
lint:
17-
name: Lint Go
16+
setup:
17+
name: Setup Go
1818
runs-on: ubuntu-latest
1919
steps:
2020
- name: Checkout
2121
uses: actions/checkout@v4
22-
22+
2323
- name: Setup go
2424
uses: actions/setup-go@v5
2525
with:
2626
go-version-file: ./go.mod
27+
28+
lint:
29+
name: Lint Go
30+
needs: setup
31+
runs-on: ubuntu-latest
32+
steps:
33+
- name: Checkout
34+
uses: actions/checkout@v4
2735

2836
- name: Run golangci-lint
2937
uses: golangci/golangci-lint-action@v6
@@ -42,11 +50,6 @@ jobs:
4250
- name: Checkout
4351
uses: actions/checkout@v4
4452

45-
- name: Setup go
46-
uses: actions/setup-go@v5
47-
with:
48-
go-version-file: ./go.mod
49-
5053
- name: Setup Mage
5154
uses: magefile/mage-action@v3
5255
with:

0 commit comments

Comments
 (0)