Skip to content

Commit

Permalink
change workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
loganmc10 committed Mar 24, 2024
1 parent 426a5ef commit a64ada9
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 5 deletions.
5 changes: 0 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,6 @@ jobs:
go-version-file: "go.mod"
cache: false

- name: golangci-lint
uses: golangci/golangci-lint-action@v4
with:
args: --timeout=10m --enable-all --disable wsl,gocritic,funlen,depguard,exhaustivestruct,varnamelen,nestif,cyclop,exhaustruct,revive

- name: run code
run: |
go run .
Expand Down
23 changes: 23 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Lint project

on:
push:
branches:
- main
pull_request:
workflow_dispatch:

jobs:
lint-linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: "go.mod"
cache: false

- name: golangci-lint
uses: golangci/golangci-lint-action@v4
with:
args: --timeout=10m --enable-all --disable wsl,gocritic,funlen,depguard,exhaustivestruct,varnamelen,nestif,cyclop,exhaustruct,revive

0 comments on commit a64ada9

Please sign in to comment.