diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 01d1724..f2c6605 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,21 +1,29 @@ name: Build and Test -on: push +on: + push: + schedule: + - cron: "0 8 * * 6" jobs: build: name: Build and Test runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - uses: actions/setup-go@v3 + - uses: actions/checkout@v4 + - uses: actions/setup-go@v4 with: go-version: 'stable' check-latest: true - name: Vet run: | go vet ./... - - name: Test run: | go test -race ./... + - name: Staticcheck + continue-on-error: true + uses: dominikh/staticcheck-action@v1.3.0 + with: + version: 'latest' + install-go: false diff --git a/README.md b/README.md index 5e808b8..2a0e832 100644 --- a/README.md +++ b/README.md @@ -2,12 +2,8 @@ ![Build and Test](https://github.com/nathany/get-programming-with-go/actions/workflows/build.yml/badge.svg) -Available from Manning Publications [https://www.manning.com/books/get-programming-with-go](https://www.manning.com/books/get-programming-with-go?utm_source=nathany&utm_medium=affiliate&utm_campaign=book_youngman_get_9_17_18&a_aid=nathany&a_bid=53f68821). +Available from Manning Publications [https://www.manning.com/books/get-programming-with-go](https://www.manning.com/books/get-programming-with-go?utm_source=nathany&utm_medium=affiliate&utm_campaign=affiliate&a_aid=nathany). Try out these examples in The Go Playground: https://play.golang.org If you downloaded this code from the Manning website, you can browse the latest version online at: https://github.com/nathany/get-programming-with-go. - -### Contributing - -Feel free to open an issue or ask questions on the Manning liveBook: https://forums.manning.com/forums/get-programming-with-go. diff --git a/cleanup.go b/cleanup.go index 1bca6c5..ad70ddf 100644 --- a/cleanup.go +++ b/cleanup.go @@ -1,5 +1,5 @@ // Script to remove AsciiDoctor comments from source code listings when brought over -// from the book. Yes, I did try to figure out sed on OS X first, but this works. +// from the book. package main import ( diff --git a/go.mod b/go.mod index 9e0f192..740e24f 100644 --- a/go.mod +++ b/go.mod @@ -1,3 +1,3 @@ module github.com/nathany/get-programming-with-go -go 1.16 +go 1.21 diff --git a/staticcheck.conf b/staticcheck.conf new file mode 100644 index 0000000..1f020e2 --- /dev/null +++ b/staticcheck.conf @@ -0,0 +1 @@ +checks = ["all", "-U1000"] \ No newline at end of file