Skip to content

Commit

Permalink
Merge pull request #54 from silenceper/silenceper-patch-1
Browse files Browse the repository at this point in the history
Update go.yml
  • Loading branch information
silenceper authored Sep 24, 2023
2 parents 7a87a33 + 4d4313c commit 68d4fa9
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 7 deletions.
17 changes: 11 additions & 6 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
golangci:
strategy:
matrix:
go-version: [1.14.x]
go-version: [ '1.16','1.17','1.18','1.19','1.20' ]
name: golangci-lint
runs-on: ubuntu-latest
steps:
Expand All @@ -28,13 +28,18 @@ jobs:
build:
name: Test
runs-on: ubuntu-latest

strategy:
matrix:
go-version: [ '1.16','1.17','1.18','1.19','1.20' ]

steps:
- uses: actions/checkout@v2
- name: Set up Go 1.x
uses: actions/setup-go@v2
- name: Setup Golang ${{ matrix.go-version }}
uses: actions/setup-go@v4
with:
go-version: ^1.13
id: go
go-version: ${{ matrix.go-version }}
- name: Checkout
uses: actions/checkout@v3
- name: Test
run: go test -v -race ./...

3 changes: 2 additions & 1 deletion gowatch.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,8 @@ func getFileModTime(path string) int64 {
var building bool

// Autobuild auto build
// nolint:funlen
//
//nolint:funlen
func Autobuild(files []string) {
if building {
log.Infof("still in building...\n")
Expand Down

0 comments on commit 68d4fa9

Please sign in to comment.