From c28c76d7dfb7107f8a9fd653b2538a2b314e7c4a Mon Sep 17 00:00:00 2001 From: september Date: Sat, 18 Dec 2021 19:42:36 +0800 Subject: [PATCH] ci: change ci go version to 1.16 to 1.18 --- .github/workflows/test.yml | 19 +++++-------------- 1 file changed, 5 insertions(+), 14 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 556ffc72..029a525d 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,35 +1,26 @@ # Copy from https://github.com/spf13/cobra # https://github.com/spf13/cobra/blob/master/LICENSE.txt name: Test - on: push: pull_request: - env: GO111MODULE: on - jobs: - - test-unix: strategy: fail-fast: false matrix: - platform: - - ubuntu - - macOS - go: - - 1.14.x - - 1.15.x - - 1.16.x - name: '${{ matrix.platform }} | ${{ matrix.go }}' - runs-on: ${{ matrix.platform }}-latest + os: [ ubuntu-latest, macos-latest, windows-latest ] + go-version: [ 1.16.x,1.17.x,1.18beta1 ] + name: '${{ matrix.os }} | ${{ matrix.go-version }}' + runs-on: ${{ matrix.os }} steps: - uses: actions/setup-go@v2 with: go-version: ${{ matrix.go }} + stable: ${{ !contains(matrix.go, 'beta') }} - uses: actions/checkout@v2