Skip to content

Commit

Permalink
build: test on go stable and oldstable (#259)
Browse files Browse the repository at this point in the history
Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
  • Loading branch information
caarlos0 committed Apr 6, 2023
1 parent 4e0f915 commit fac0414
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,23 +19,23 @@ jobs:
strategy:
matrix:
os: [ ubuntu-latest, macos-latest, windows-latest ]
go-version: [ oldstable, stable]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
with:
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
Expand Down

0 comments on commit fac0414

Please sign in to comment.