diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index d431484..ecea59c 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -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: @@ -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 ./... diff --git a/gowatch.go b/gowatch.go index 4e154c2..4c6589c 100644 --- a/gowatch.go +++ b/gowatch.go @@ -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")