Skip to content

Commit

Permalink
change workflows (#15)
Browse files Browse the repository at this point in the history
* change workflows

* fix
  • Loading branch information
loganmc10 authored Mar 24, 2024
1 parent d5d31e3 commit e7b930f
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 6 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
2 changes: 1 addition & 1 deletion cheat-parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ func main() {
log.Panic(err)
}

f, err := os.OpenFile("cheats.json", os.O_RDWR|os.O_CREATE|os.O_TRUNC, 0o644)
f, err := os.OpenFile("cheats.json", os.O_RDWR|os.O_CREATE|os.O_TRUNC, 0o644) //nolint:gomnd
if err != nil {
log.Panic(err)
}
Expand Down

0 comments on commit e7b930f

Please sign in to comment.