Skip to content
This repository has been archived by the owner on Apr 19, 2024. It is now read-only.

Commit

Permalink
use golangci-lint-action
Browse files Browse the repository at this point in the history
  • Loading branch information
miparnisari committed Nov 30, 2023
1 parent e6144df commit e570d61
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/on-pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ on:
pull_request:
branches: [ master, main ]

env:
GOLANGCI_LINT_VERSION: v1.54.2

jobs:
test:
name: test
Expand Down Expand Up @@ -42,8 +45,11 @@ jobs:
- name: Install deps
run: go mod download

- name: Lint
run: make lint
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: ${{ env.GOLANGCI_LINT_VERSION }}
skip-cache: true

- name: Test
run: go test -v -race -p=1 -count=1

0 comments on commit e570d61

Please sign in to comment.