ci: check gofmt, split build into separate task, enable -race

This commit is contained in:
Simon Ser
2025-02-21 10:52:07 +01:00
parent aba953c3b6
commit 1b10baf554

View File

@@ -4,6 +4,12 @@ packages:
sources: sources:
- https://github.com/emersion/go-webdav - https://github.com/emersion/go-webdav
tasks: tasks:
- build: |
cd go-webdav
go build -race -v ./...
- test: | - test: |
cd go-webdav cd go-webdav
go test -v ./... go test -race -v ./...
- gofmt: |
cd go-webdav
test -z $(gofmt -l .)