Skip to content

Commit fac0414

Browse files
authored
build: test on go stable and oldstable (#259)
Signed-off-by: Carlos A Becker <[email protected]>
1 parent 4e0f915 commit fac0414

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/build.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -19,23 +19,23 @@ jobs:
1919
strategy:
2020
matrix:
2121
os: [ ubuntu-latest, macos-latest, windows-latest ]
22+
go-version: [ oldstable, stable]
2223
runs-on: ${{ matrix.os }}
2324
steps:
2425
- uses: actions/checkout@v3
2526
with:
2627
fetch-depth: 0
2728
- uses: actions/setup-go@v4
2829
with:
29-
go-version: 1.19
30-
cache: true
30+
go-version: ${{ matrix.go-version }}
3131
- run: make setup ci
3232
- uses: codecov/codecov-action@v3
33-
if: matrix.os == 'ubuntu-latest'
33+
if: matrix.os == 'ubuntu-latest' && matrix.go-version == 'stable'
3434
with:
3535
token: ${{ secrets.CODECOV_TOKEN }}
3636
file: ./coverage.txt
3737
- uses: goreleaser/goreleaser-action@v4
38-
if: success() && startsWith(github.ref, 'refs/tags/') && matrix.os == 'ubuntu-latest'
38+
if: success() && startsWith(github.ref, 'refs/tags/') && matrix.os == 'ubuntu-latest' && matrix.go-version == 'stable'
3939
with:
4040
version: latest
4141
distribution: goreleaser-pro

0 commit comments

Comments
 (0)