Skip to content

Commit b6aaa63

Browse files
committed
Drop go-version matrix on testing
Signed-off-by: Adolfo García Veytia (Puerco) <puerco@carabiner.dev>
1 parent ccd5037 commit b6aaa63

1 file changed

Lines changed: 6 additions & 22 deletions

File tree

.github/workflows/go-build-and-test.yaml

Lines changed: 6 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -9,30 +9,10 @@ on:
99
workflow_dispatch: {}
1010

1111
jobs:
12-
resolve-versions:
13-
runs-on: ubuntu-latest
14-
outputs:
15-
go-versions: ${{ steps.matrix.outputs.go-versions }}
16-
steps:
17-
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
18-
with:
19-
persist-credentials: false
20-
21-
- name: Resolve Go versions
22-
id: go-versions
23-
uses: carabiner-dev/actions/go/versions@360ffa1eb909b0105d4eccb6d6ef337911c34952 # v1.1.6
24-
25-
- name: Build version matrix
26-
id: matrix
27-
run: |
28-
echo "go-versions=[\"${{ steps.go-versions.outputs.GO_VERSION_STABLE }}\",\"${{ steps.go-versions.outputs.GO_VERSION_PREVIOUS }}\"]" >> "$GITHUB_OUTPUT"
29-
3012
test:
31-
needs: resolve-versions
3213
runs-on: ${{ matrix.os }}
3314
strategy:
3415
matrix:
35-
go-version: ${{ fromJSON(needs.resolve-versions.outputs.go-versions) }}
3616
os: [ubuntu-latest, macos-latest, windows-latest]
3717
fail-fast: false
3818

@@ -44,10 +24,14 @@ jobs:
4424
with:
4525
persist-credentials: false
4626

47-
- name: Set up Go ${{ matrix.go-version }}
27+
- name: Resolve Go versions
28+
id: go-versions
29+
uses: carabiner-dev/actions/go/versions@360ffa1eb909b0105d4eccb6d6ef337911c34952 # v1.1.6
30+
31+
- name: Set up Go
4832
uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0
4933
with:
50-
go-version: ${{ matrix.go-version }}
34+
go-version: ${{ steps.go-versions.outputs.GO_VERSION_STABLE }}
5135
cache: false
5236

5337
- name: Test

0 commit comments

Comments
 (0)