Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update linters #40

Merged
merged 18 commits into from
Nov 10, 2022
20 changes: 18 additions & 2 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,11 @@ on: # yamllint disable-line rule:truthy
paths:
- '**.go'
workflow_call:
workflow_dispatch:
pull_request:

jobs:
golangci_lint:
lint:
name: Linters
runs-on: ubuntu-latest
steps:
- name: Install Go
Expand All @@ -20,6 +21,21 @@ jobs:

- name: Checkout code
uses: actions/checkout@v3
with:
fetch-depth: '0'

- name: fetch main
run: git fetch origin main && git branch main remotes/origin/main

- name: Lint
uses: golangci/golangci-lint-action@v3
with:
version: latest
args:
--config=./.golangci.yml
JekaMas marked this conversation as resolved.
Show resolved Hide resolved

- name: staticcheck
uses: dominikh/staticcheck-action@v1.2.0
with:
version: "2022.1.1"
install-go: false
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
submodules: recursive

- name: Go test
run: go test -shuffle=on -coverprofile coverage.out -timeout 2m ./...
run: go test -covermode=atomic -shuffle=on -coverprofile coverage.out -timeout 2m ./...

- name: Upload coverage file to Codecov
uses: codecov/codecov-action@v3
Expand Down
Loading