Skip to content

Commit 1372745

Browse files
committed
Reintroduce building against multiple go versions
1 parent 08cfb3f commit 1372745

File tree

3 files changed

+10
-7
lines changed

3 files changed

+10
-7
lines changed

.github/workflows/go.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,11 @@ on:
88
jobs:
99
build:
1010
runs-on: ubuntu-latest
11-
name: ${{ matrix.name }} - 1.22
11+
name: ${{ matrix.name }} - ${{ matrix.version }}
1212
strategy:
1313
matrix:
1414
dir: [., ./store/awsrds, ./store/vault]
15+
version: [1.22, 1.23]
1516
include:
1617
- dir: .
1718
name: go-db-credential-refresh
@@ -23,8 +24,8 @@ jobs:
2324
- uses: actions/checkout@v4
2425
- uses: actions/setup-go@v5
2526
with:
26-
go-version: 1.22
27+
go-version: ${{ matrix.version }}
2728
cache-dependency-path: ${{ matrix.dir }}/go.sum
2829
- name: Build
29-
run: go build -v ./...
3030
working-directory: ${{ matrix.dir }}
31+
run: go build -v ./...

.github/workflows/lint.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,11 @@ on:
88
jobs:
99
lint:
1010
runs-on: ubuntu-latest
11-
name: ${{ matrix.name }} - 1.22
11+
name: ${{ matrix.name }} - ${{ matrix.version }}
1212
strategy:
1313
matrix:
1414
dir: [., ./store/awsrds, ./store/vault]
15+
version: [1.22, 1.23]
1516
include:
1617
- dir: .
1718
name: go-db-credential-refresh
@@ -23,7 +24,7 @@ jobs:
2324
- uses: actions/checkout@v4
2425
- uses: actions/setup-go@v5
2526
with:
26-
go-version: 1.22
27+
go-version: ${{ matrix.version }}
2728
cache-dependency-path: ${{ matrix.dir }}/go.sum
2829
- name: golangci-lint
2930
uses: golangci/golangci-lint-action@v6

.github/workflows/test.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,11 @@ on:
88
jobs:
99
lint:
1010
runs-on: ubuntu-latest
11-
name: ${{ matrix.name }} - 1.22
11+
name: ${{ matrix.name }} - ${{ matrix.version }}
1212
strategy:
1313
matrix:
1414
dir: [., ./store/awsrds, ./store/vault]
15+
version: [1.22, 1.23]
1516
include:
1617
- dir: .
1718
name: go-db-credential-refresh
@@ -23,7 +24,7 @@ jobs:
2324
- uses: actions/checkout@v4
2425
- uses: actions/setup-go@v5
2526
with:
26-
go-version: 1.22
27+
go-version: ${{ matrix.version }}
2728
cache-dependency-path: ${{ matrix.dir }}/go.sum
2829
- name: Test
2930
working-directory: ${{ matrix.dir }}

0 commit comments

Comments
 (0)