Skip to content

Commit

Permalink
Merge pull request #98 from nspcc-dev/org-linter
Browse files Browse the repository at this point in the history
workflows: reuse org-wide linter job
  • Loading branch information
roman-khimov authored Sep 11, 2024
2 parents bebbf1c + 98e7d66 commit d026397
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 70 deletions.
16 changes: 1 addition & 15 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,21 +12,7 @@ on:
jobs:
lint:
name: Lint
runs-on: ubuntu-22.04
steps:
- name: Check out code
uses: actions/checkout@v4

- name: Set up Go from go.mod
uses: actions/setup-go@v5
with:
go-version-file: 'go.mod'

- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: latest
args: --timeout=2m
uses: nspcc-dev/.github/.github/workflows/go-linter.yml@master

tests:
name: Tests
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ k6
xk6-neofs
*.bolt
presets
.golangci.yml
54 changes: 0 additions & 54 deletions .golangci.yml

This file was deleted.

5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,11 @@ install_xk6:
test:
@go test ./... -cover

.golangci.yml:
wget -O $@ https://github.com/nspcc-dev/.github/raw/master/.golangci.yml

# Run linters
lint:
lint: .golangci.yml
@golangci-lint --timeout=5m run

# Reformat code
Expand Down

0 comments on commit d026397

Please sign in to comment.