]> Sergey Matveev's repositories - btrtrc.git/blobdiff - .github/workflows/go.yml
Drop support for go 1.20
[btrtrc.git] / .github / workflows / go.yml
index 19f5d87219b483b848341bfd90e2cdf9f06b00cf..e95f82604f5cc5234f91a0cb825a2b98f620fc63 100644 (file)
@@ -5,23 +5,25 @@ on: [push, pull_request]
 jobs:
 
   test:
-    timeout-minutes: 30
+    timeout-minutes: 10
     runs-on: ${{ matrix.os }}
     strategy:
       matrix:
-        go-version: [ '1.19', '1.20' ]
+        go-version: [ '1.21' ]
         os: [windows-latest, macos-latest, ubuntu-latest]
       fail-fast: false
     steps:
     - uses: actions/checkout@v2
     - uses: ./.github/actions/go-common
-    - run: go test -race -count 2 ./...
+    - run: go test -race -count 2 $(go list ./... | grep -v /fs)
+    - run: go test -race -count 2 ./fs/...
+      if: ${{ ! contains(matrix.os, 'windows') }}
 
   test-benchmarks:
     runs-on: ubuntu-latest
     strategy:
       matrix:
-        go-version: [ '1.20' ]
+        go-version: [ '1.21' ]
       fail-fast: false
     steps:
     - uses: actions/checkout@v2
@@ -32,7 +34,7 @@ jobs:
     runs-on: ubuntu-latest
     strategy:
       matrix:
-        go-version: [ '1.20' ]
+        go-version: [ '1.21' ]
       fail-fast: false
     steps:
     - uses: actions/checkout@v2
@@ -43,7 +45,7 @@ jobs:
     runs-on: ubuntu-latest
     strategy:
       matrix:
-        go-version: [ '1.20' ]
+        go-version: [ '1.21' ]
       fail-fast: false
     steps:
     - uses: actions/checkout@v2
@@ -55,7 +57,7 @@ jobs:
     runs-on: ubuntu-latest
     strategy:
       matrix:
-        go-version: [ '1.20' ]
+        go-version: [ '1.21' ]
       fail-fast: false
     steps:
     - uses: actions/checkout@v2
@@ -68,7 +70,7 @@ jobs:
     runs-on: ${{ matrix.os }}
     strategy:
       matrix:
-        go-version: [ '1.20' ]
+        go-version: [ '1.21' ]
         os: [ubuntu-latest]
       fail-fast: false
     steps: