Skip to content

Commit

Permalink
chore: increase timeout for golangci-lint
Browse files Browse the repository at this point in the history
  • Loading branch information
s4kh committed Oct 15, 2024
1 parent 3c5c420 commit 355e782
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 10 deletions.
10 changes: 0 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@ on:
- main
pull_request:

env:
GOLANGCI_LINT_VERSION: v1.61.0

jobs:
build-lint-test:
name: CI
Expand All @@ -32,17 +29,10 @@ jobs:
sudo apt update
sudo apt install -y gcc
- name: Setup CI Linter
run: curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin ${{env.GOLANGCI_LINT_VERSION}}

- name: Build
run: |
mage -v build
- name: Lint
run: |
mage -v lint
- name: Test
run: |
CGO_ENABLED=1 mage -v testRace
29 changes: 29 additions & 0 deletions .github/workflows/go-lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Lint Go
on:
push:
branches:
- main
pull_request:

permissions:
contents: read

env:
GOLANGCI_LINT_VERSION: v1.61.0
jobs:
lint-go:
name: Lint Go
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: ./go.mod
- name: Run golangci-lint
uses: golangci/golangci-lint-action@v6
with:
version: ${{env.GOLANGCI_LINT_VERSION}}
args: |
"./..." --timeout=7m
skip-cache: true
install-mode: binary

0 comments on commit 355e782

Please sign in to comment.