Skip to content

Commit db6f414

Browse files
committed
Update actions and readme
Staticcheck shows deprecations
1 parent e52bf33 commit db6f414

File tree

5 files changed

+16
-11
lines changed

5 files changed

+16
-11
lines changed

.github/workflows/build.yml

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,29 @@
11
name: Build and Test
22

3-
on: push
3+
on:
4+
push:
5+
schedule:
6+
- cron: "0 8 * * 6"
47

58
jobs:
69
build:
710
name: Build and Test
811
runs-on: ubuntu-latest
912
steps:
10-
- uses: actions/checkout@v3
11-
- uses: actions/setup-go@v3
13+
- uses: actions/checkout@v4
14+
- uses: actions/setup-go@v4
1215
with:
1316
go-version: 'stable'
1417
check-latest: true
1518
- name: Vet
1619
run: |
1720
go vet ./...
18-
1921
- name: Test
2022
run: |
2123
go test -race ./...
24+
- name: Staticcheck
25+
continue-on-error: true
26+
uses: dominikh/staticcheck-action@v1.3.0
27+
with:
28+
version: 'latest'
29+
install-go: false

README.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,8 @@
22

33
![Build and Test](https://github.com/nathany/get-programming-with-go/actions/workflows/build.yml/badge.svg)
44

5-
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).
5+
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).
66

77
Try out these examples in The Go Playground: https://play.golang.org
88

99
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.
10-
11-
### Contributing
12-
13-
Feel free to open an issue or ask questions on the Manning liveBook: https://forums.manning.com/forums/get-programming-with-go.

cleanup.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// Script to remove AsciiDoctor comments from source code listings when brought over
2-
// from the book. Yes, I did try to figure out sed on OS X first, but this works.
2+
// from the book.
33
package main
44

55
import (

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module github.com/nathany/get-programming-with-go
22

3-
go 1.16
3+
go 1.21

staticcheck.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
checks = ["all", "-U1000"]

0 commit comments

Comments
 (0)