Skip to content

Commit

Permalink
ci: use official lint action
Browse files Browse the repository at this point in the history
  • Loading branch information
MuZhou233 committed Sep 20, 2024
1 parent 8b3f8ca commit a02b30f
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions .github/workflows/golangci-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,26 @@ on:
- master
- main
pull_request:

permissions:
contents: write
contents: read
# Optional: allow read access to pull request. Use with `only-new-issues` option.
pull-requests: read

jobs:
golangci:
strategy:
matrix:
go: [stable]
os: [ubuntu-latest, macos-latest, windows-latest]
name: lint
runs-on: ubuntu-latest
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: 'stable'
- uses: actions/checkout@v4
go-version: ${{ matrix.go }}
- name: golangci-lint
run: make init-lint && make lint
uses: golangci/golangci-lint-action@v6
with:
version: latest

0 comments on commit a02b30f

Please sign in to comment.