Skip to content

Commit

Permalink
Add GH lint workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Max Kuznetsov committed Aug 24, 2023
1 parent 5377951 commit 4f256b3
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/golangci-lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: golangci-lint
on:
workflow_dispatch:
pull_request:

permissions:
contents: read
pull-requests: read

jobs:
golangci:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version: "stable"
cache: false
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: v1.54
only-new-issues: true
args: --timeout=10m
15 changes: 15 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
run:
# Enables skipping of directories:
# - vendor$, third_party$, testdata$, examples$, Godeps$, builtin$
skip-dirs-use-default: true
skip-dirs:
- internal/gopher-lua
- internal/cronexpr

linters:
enable:
- gofmt

linters-settings:
gofmt:
simplify: false

0 comments on commit 4f256b3

Please sign in to comment.