From 8c9ff39ed7481c3a76c971693f75c8f5f04c2af5 Mon Sep 17 00:00:00 2001 From: Jordan Liggitt Date: Mon, 14 Oct 2024 10:40:52 -0400 Subject: [PATCH] Matrix test go versions --- .github/workflows/ci.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e6ec1c9..897a187 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -10,15 +10,19 @@ jobs: ci: runs-on: ubuntu-latest + strategy: + matrix: + go: [ '', '1.x' ] # '' uses go.mod, 1.x uses latest go steps: - uses: actions/checkout@v2 with: path: src/sigs.k8s.io/json/ - name: Set up Go - uses: actions/setup-go@v2 + uses: actions/setup-go@v3 with: - go-version: "1.x" + go-version-file: 'go.mod' + go-version: ${{ matrix.go }} stable: true check-latest: true @@ -45,7 +49,7 @@ jobs: if: github.base_ref steps: - name: Install Go - uses: actions/setup-go@v2 + uses: actions/setup-go@v3 with: go-version: '1.x' - name: Add GOBIN to PATH