diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml index 7447113..b028c0d 100644 --- a/.github/workflows/build-and-test.yml +++ b/.github/workflows/build-and-test.yml @@ -27,6 +27,7 @@ jobs: go-versions: name: lookup Go versions runs-on: ubuntu-latest + needs: [setup-env] outputs: matrix: ${{ steps.versions.outputs.matrix }} version: ${{ steps.versions.outputs.go-mod-version }} @@ -41,13 +42,13 @@ jobs: matrix: go-version: ${{ fromJSON(needs.go-versions.outputs.matrix) }} runs-on: ubuntu-latest - needs: go-versions + needs: [go-versions] steps: - uses: actions/checkout@v4 - name: install Go uses: actions/setup-go@v5 with: - go-version: 1.22 + go-version: "1.22" check-latest: true - name: Go test 1.21 if: startsWith( matrix.go-version , needs.go-versions.outputs.version )