Skip to content

Commit 9f9082b

Browse files
committed
Use mage in GitHub action for linting
1 parent afd1102 commit 9f9082b

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.github/workflows/go.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,4 +40,12 @@ jobs:
4040
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
4141

4242
- name: golangci-lint
43-
run: docker run -v $GITHUB_WORKSPACE:/repo -w /repo golangci/golangci-lint:v1.42 golangci-lint run
43+
uses: golangci/golangci-lint-action@4afd733a84b1f43292c63897423277bb7f4313a9 # v8.0.0
44+
with:
45+
version: v2.5.0
46+
47+
- name: Run Mage
48+
uses: magefile/mage-action@6f50bbb8ea47d56e62dee92392788acbc8192d0b # v3.1.0
49+
with:
50+
version: latest
51+
args: lint

0 commit comments

Comments
 (0)