]> go.fuhry.dev Git - fsnotify.git/commitdiff
Test on Go 1.18 and two most recent versions (#411)
authorNathan Youngman <git@nathany.com>
Fri, 14 Jan 2022 03:49:28 +0000 (20:49 -0700)
committerGitHub <noreply@github.com>
Fri, 14 Jan 2022 03:49:28 +0000 (20:49 -0700)
* Test on Go 1.18 and two most recent versions

* on push

* ci

.github/workflows/test.yml
go.mod

index a20673a084f9e6951654605ae70b892b00b50521..8301cb9d9c397be211589852d6caa6761acd74ed 100644 (file)
@@ -1,8 +1,5 @@
 name: test
-on:
-  push:
-  pull_request:
-
+on: [push]
 jobs:
   test:
     strategy:
@@ -13,17 +10,15 @@ jobs:
           - macos-latest
           - windows-latest
         go:
+          - '1.18.0-beta1'
           - '1.17'
           - '1.16'
-          - '1.15'
-          - '1.14'
-          - '1.13'
-          - '1.12'
     runs-on: ${{ matrix.os }}
     steps:
       - name: setup Go
         uses: actions/setup-go@v2
         with:
+          stable: 'false'
           go-version: ${{ matrix.go }}
 
       - name: checkout
@@ -38,6 +33,8 @@ jobs:
     steps:
       - name: setup Go
         uses: actions/setup-go@v2
+        with: 
+          go-version: '1.17'
 
       - name: checkout
         uses: actions/checkout@v2
@@ -54,7 +51,7 @@ jobs:
         uses: golangci/golangci-lint-action@v2
         continue-on-error: true
         with:
-          version: v1.41.1
-          # this is here as a workaround for https://github.com/golangci/golangci-lint-action/issues/244
-          skip-pkg-cache: true
+          version: latest
+          skip-go-installation: true
+          
 
diff --git a/go.mod b/go.mod
index 54089e48b7bd0af552073ae2a4edf702eabe9035..8d1fc12951d25cb4ce64e6e44d126a5189d7c395 100644 (file)
--- a/go.mod
+++ b/go.mod
@@ -1,6 +1,6 @@
 module github.com/fsnotify/fsnotify
 
-go 1.13
+go 1.16
 
 require golang.org/x/sys v0.0.0-20210630005230-0f9fa26af87c