Skip to content

Commit

Permalink
Update golangci-lint configuration and workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
RyuaNerin committed Jun 10, 2024
1 parent c5bbec9 commit 66024f8
Showing 1 changed file with 38 additions and 6 deletions.
44 changes: 38 additions & 6 deletions .github/workflows/golangci-lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,8 @@ jobs:

runs-on:
- ubuntu-latest
- [ 'macOS', 'self-hosted' ]
- windows-latest

exclude:
- runs-on: [ 'macOS', 'self-hosted' ]
go-version: '1.15'

runs-on: ${{ matrix.runs-on }}

steps:
Expand All @@ -48,9 +43,46 @@ jobs:
skip-go-installation: true
version: v1.59.0

- name: golangci-lint
- name: golangci-lint (purego)
uses: golangci/golangci-lint-action@v6
with:
skip-go-installation: true
version: v1.59.0
args: --build-tags purego


golangci-lint-macos:
strategy:
matrix:
go-version:
- '1.16'
- '1.17'
- '1.18'
- '1.19'
- '1.20'
- '1.21'
- '1.22'

runs-on: [ 'macOS', 'self-hosted' ]

steps:
- uses: actions/checkout@v4

- uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
cache: false

- name: golangci-lint
uses: golangci/golangci-lint-action@v6
with:
skip-go-installation: true
version: v1.59.0
args: --disable gofumpt

- name: golangci-lint (purego)
uses: golangci/golangci-lint-action@v6
with:
skip-go-installation: true
version: v1.59.0
args: --disable gofumpt --build-tags purego

0 comments on commit 66024f8

Please sign in to comment.