Skip to content

Handle error from the file watcher #53

Handle error from the file watcher

Handle error from the file watcher #53

Workflow file for this run

name: check code
on: [push]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: 1.22.x
- run: go version
- name: gofmt
run: |
set -e
out=$(gofmt -s -l *.go)
if [ -n "$out" ]; then
echo "All the following files are not correctly formatted"
echo $out
exit 1
fi
- run: go vet
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: 1.22.x
- run: go version
- name: test
run: go test -v