watch: fix live reload for browse/mostrecent pages #109
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI | |
| on: | |
| push: | |
| pull_request: | |
| jobs: | |
| tests: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-go@v5 | |
| with: | |
| # Latest stable version of Go, e.g. 1.20.2 | |
| go-version: 'stable' | |
| - name: Ensure all files were formatted as per gofmt | |
| run: | | |
| [ "$(gofmt -l $(find . -name '*.go') 2>&1)" = "" ] | |
| - name: staticcheck | |
| run: go tool staticcheck ./... | |
| - name: run tests | |
| run: go test -v ./... |