From 4ab57d7ea2fd0c9948210b2e0784e280674e7144 Mon Sep 17 00:00:00 2001 From: HarithaVattikuti <73516759+HarithaVattikuti@users.noreply.github.com> Date: Fri, 10 May 2024 11:25:20 -0500 Subject: [PATCH] Fix versions check failure (#479) * Update to latest Go versions * Updated versions * Update test data * Update test data --- .github/workflows/versions.yml | 14 +++++++------- __tests__/data/go.mod | 2 +- __tests__/data/go.work | 2 +- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/versions.yml b/.github/workflows/versions.yml index ef31ef5..76fcead 100644 --- a/.github/workflows/versions.yml +++ b/.github/workflows/versions.yml @@ -71,7 +71,7 @@ jobs: fail-fast: false matrix: os: [macos-latest, windows-latest, ubuntu-latest] - go: [1.17, 1.18, 1.19] + go: [1.20.14, 1.21.10, 1.22.3] steps: - name: Checkout uses: actions/checkout@v4 @@ -91,7 +91,7 @@ jobs: fail-fast: false matrix: os: [ubuntu-latest, windows-latest, macos-latest] - go-version: [1.16, 1.17] + go-version: [1.20.14, 1.21] steps: - uses: actions/checkout@v4 - name: Setup Go and check latest @@ -115,7 +115,7 @@ jobs: with: go-version-file: __tests__/data/go.mod - name: verify go - run: __tests__/verify-go.sh 1.14 + run: __tests__/verify-go.sh 1.20.14 shell: bash go-version-file-with-gowork: @@ -131,7 +131,7 @@ jobs: with: go-version-file: __tests__/data/go.work - name: verify go - run: __tests__/verify-go.sh 1.19 + run: __tests__/verify-go.sh 1.21 shell: bash setup-versions-from-manifest: @@ -141,7 +141,7 @@ jobs: fail-fast: false matrix: os: [macos-latest, windows-latest, ubuntu-latest] - go: [1.12.16, 1.13.11, 1.14.3] + go: [1.20.14, 1.21.10, 1.22.3] steps: - name: Checkout uses: actions/checkout@v4 @@ -162,7 +162,7 @@ jobs: fail-fast: false matrix: os: [macos-latest, windows-latest, ubuntu-latest] - go: [1.9, 1.8.6] + go: [1.20.14, 1.21] steps: - name: Checkout uses: actions/checkout@v4 @@ -182,7 +182,7 @@ jobs: fail-fast: false matrix: os: [ubuntu-latest, windows-latest, macos-latest] - go-version: [1.16, 1.17] + go-version: [1.20.14, 1.21] steps: - uses: actions/checkout@v4 - name: Setup Go and check latest diff --git a/__tests__/data/go.mod b/__tests__/data/go.mod index dea3480..69b9e47 100644 --- a/__tests__/data/go.mod +++ b/__tests__/data/go.mod @@ -1,6 +1,6 @@ module example.com/mymodule -go 1.14 +go 1.20 require ( example.com/othermodule v1.2.3 diff --git a/__tests__/data/go.work b/__tests__/data/go.work index 52a3b7c..1cd473e 100644 --- a/__tests__/data/go.work +++ b/__tests__/data/go.work @@ -1,3 +1,3 @@ -go 1.19 +go 1.21 use .