psanford / wormhole-william

End-to-end encrypted file transfer. A magic wormhole CLI and API in Go (golang).
MIT License
1.08k stars 55 forks source link

Add meta tests for gofmt and mod tidy #47

Closed psanford closed 3 years ago

psanford commented 3 years ago

These tests make sure files are all gofmt'ed and that a go mod tidy doesn't produce any changes to the go.mod or go.sum files.

I want this information exposed in PRs.

The go mod tidy test is behind the ci build tag. This is because that test looks at the git working tree state and will also update the go.mod/sum files if it needs to, which could be quite annoying during development.