diff options
| -rw-r--r-- | .github/workflows/ci.yml | 7 | ||||
| -rw-r--r-- | cmd/server/main.go | 2 |
2 files changed, 6 insertions, 3 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index fff1768..bd7984d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -7,7 +7,7 @@ on: branches: [master] jobs: - tests: + ci: name: Tests runs-on: ubuntu-latest @@ -20,5 +20,8 @@ jobs: with: go-version: "1.23.2" + - name: Format code + run: test -z $(go fmt ./...) + - name: Run tests - run: go test ./... + run: go test --cover ./... diff --git a/cmd/server/main.go b/cmd/server/main.go index fa04d69..c02f65d 100644 --- a/cmd/server/main.go +++ b/cmd/server/main.go @@ -16,7 +16,7 @@ import ( const port = 7223 -func main() { +func main(){ stdout := flag.Bool("stdout", false, "enable logging to stdout") flag.Parse() |
