From 40c1550f4486fbf47778b03cd6063958c070ba04 Mon Sep 17 00:00:00 2001 From: Oleksandr Redko Date: Thu, 1 Jun 2023 15:17:27 +0300 Subject: [PATCH] .github: run tests with Go 1.15 (#173) --- .github/workflows/main.yml | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 82f50c6..bb013bd 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -17,7 +17,7 @@ jobs: strategy: matrix: os: [ ubuntu-latest, macos-latest, windows-latest ] - go: [ 'stable', 'oldstable' ] + go: [ '1.15', 'stable', 'oldstable' ] runs-on: ${{ matrix.os }} steps: @@ -41,8 +41,18 @@ jobs: - name: Go Mod Verify run: | go mod verify - + + - name: Test Go 1.15 + # This step if needed because -shuffle not available on Go 1.15. + # Tests are failing on MacOS. So, we just disable it. + if: >- + matrix.go == '1.15' && matrix.os != 'macos-latest' + run: | + go test -v -race -cover ./... + - name: Test + if: >- + matrix.go != '1.15' run: | go test -v -race -shuffle=on -cover ./...