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 66024f8 commit 0f86723
Showing 1 changed file with 11 additions and 38 deletions.
49 changes: 11 additions & 38 deletions .github/workflows/golangci-lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,47 +25,21 @@ 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:
- 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
- name: Set git to use LF
run: |
git config --global core.autocrlf false
git config --global core.eol lf
- 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
Expand All @@ -78,11 +52,10 @@ jobs:
with:
skip-go-installation: true
version: v1.59.0
args: --disable gofumpt

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

0 comments on commit 0f86723

Please sign in to comment.