Skip to content

Commit

Permalink
Update CI flow
Browse files Browse the repository at this point in the history
  • Loading branch information
qba73 committed Oct 20, 2023
1 parent e03c033 commit 246a0e6
Show file tree
Hide file tree
Showing 6 changed files with 74 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ jobs:
test:
strategy:
matrix:
go-version: [1.19.x, 1.20.x]
go-version: [1.19.x, 1.20.x, 1.21.x]
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
Expand Down
11 changes: 11 additions & 0 deletions cmd/forecast/main.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
package main

import (
"os"

"github.com/qba73/meteo"
)

func main() {
os.Exit(meteo.RunForecastCLI())
}
Binary file added cmd/meteo/meteo
Binary file not shown.
62 changes: 62 additions & 0 deletions goci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
linters:
disable-all: true
enable:
- bodyclose
- deadcode
- dupl
- errcheck
- gochecknoglobals
- gochecknoinits
- goconst
- gocritic
- gocyclo
- gofmt
- goimports
- gosec
- gosimple
- govet
- lll
- ineffassign
- misspell
- nakedret
- prealloc
- exportloopref
- staticcheck
- structcheck
- stylecheck
- typecheck
- unconvert
- unparam
- unused
- varcheck
- dogsled
- godox
- whitespace
- godot
- revive

linter-settings:
goimports:
local-prefixes: github.com/qba73/meteo

errcheck:
check-type-assertions: true
check-blank: true

unused:
check-exported: true

unparam:
check-exported: true

prealloc:
for-loops: true

gocritic:
enabled-tags:
- diagnostic
- style
- performance
- experimental
- opinionated

Binary file added meteo
Binary file not shown.
Empty file added testdata/script/meteo.txtar
Empty file.

0 comments on commit 246a0e6

Please sign in to comment.