Skip to content

Commit

Permalink
Update actions and readme
Browse files Browse the repository at this point in the history
Staticcheck shows deprecations
  • Loading branch information
nathany committed Dec 3, 2023
1 parent e52bf33 commit db6f414
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 11 deletions.
16 changes: 12 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -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/[email protected]
with:
version: 'latest'
install-go: false
6 changes: 1 addition & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
2 changes: 1 addition & 1 deletion cleanup.go
Original file line number Diff line number Diff line change
@@ -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 (
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module github.com/nathany/get-programming-with-go

go 1.16
go 1.21
1 change: 1 addition & 0 deletions staticcheck.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
checks = ["all", "-U1000"]

0 comments on commit db6f414

Please sign in to comment.