From fac0414d0b77f17582fba4aaa5d435820c5a39f0 Mon Sep 17 00:00:00 2001 From: Carlos Alexandro Becker Date: Thu, 6 Apr 2023 15:04:10 -0300 Subject: [PATCH] build: test on go stable and oldstable (#259) Signed-off-by: Carlos A Becker --- .github/workflows/build.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 920d0b9..2a1a7a6 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -19,6 +19,7 @@ jobs: strategy: matrix: os: [ ubuntu-latest, macos-latest, windows-latest ] + go-version: [ oldstable, stable] runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v3 @@ -26,16 +27,15 @@ jobs: fetch-depth: 0 - uses: actions/setup-go@v4 with: - go-version: 1.19 - cache: true + go-version: ${{ matrix.go-version }} - run: make setup ci - uses: codecov/codecov-action@v3 - if: matrix.os == 'ubuntu-latest' + if: matrix.os == 'ubuntu-latest' && matrix.go-version == 'stable' with: token: ${{ secrets.CODECOV_TOKEN }} file: ./coverage.txt - uses: goreleaser/goreleaser-action@v4 - if: success() && startsWith(github.ref, 'refs/tags/') && matrix.os == 'ubuntu-latest' + if: success() && startsWith(github.ref, 'refs/tags/') && matrix.os == 'ubuntu-latest' && matrix.go-version == 'stable' with: version: latest distribution: goreleaser-pro