From 32067800dcf4ccbf976511c182c50a67dca808dd Mon Sep 17 00:00:00 2001 From: Bradley Jones Date: Thu, 15 Feb 2024 17:17:54 +0000 Subject: [PATCH] feat: bump go to 1.21 Signed-off-by: Bradley Jones --- .github/workflows/release.yaml | 6 +++--- .github/workflows/snapshot.yaml | 2 +- .github/workflows/static-analysis.yaml | 2 +- .github/workflows/unit-test.yaml | 2 +- go.mod | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 59388ad..d0becf1 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -9,7 +9,7 @@ on: - 'v*' env: - GO_VERSION: "1.20.x" + GO_VERSION: "1.21.x" jobs: wait-for-checks: @@ -40,7 +40,7 @@ jobs: with: token: ${{ secrets.GITHUB_TOKEN }} # This check name is defined as the github actions job name (in .github/workflows/static-analysis.yaml) - checkName: "Static-Analysis (1.20.x, ubuntu-latest)" + checkName: "Static-Analysis (1.21.x, ubuntu-latest)" ref: ${{ github.event.pull_request.head.sha || github.sha }} - name: Check unit test results @@ -49,7 +49,7 @@ jobs: with: token: ${{ secrets.GITHUB_TOKEN }} # This check name is defined as the github actions job name (in .github/workflows/unit-test.yaml) - checkName: "Unit-Tests (1.20.x, ubuntu-latest)" + checkName: "Unit-Tests (1.21.x, ubuntu-latest)" ref: ${{ github.event.pull_request.head.sha || github.sha }} - name: Quality gate diff --git a/.github/workflows/snapshot.yaml b/.github/workflows/snapshot.yaml index a74e25a..a682845 100644 --- a/.github/workflows/snapshot.yaml +++ b/.github/workflows/snapshot.yaml @@ -7,7 +7,7 @@ on: - main env: - GO_VERSION: "1.20.x" + GO_VERSION: "1.21.x" jobs: Build-Snapshot-Artifacts: diff --git a/.github/workflows/static-analysis.yaml b/.github/workflows/static-analysis.yaml index 348d2ae..d2b6c8a 100644 --- a/.github/workflows/static-analysis.yaml +++ b/.github/workflows/static-analysis.yaml @@ -7,7 +7,7 @@ jobs: Static-Analysis: strategy: matrix: - go-version: ["1.20.x"] + go-version: ["1.21.x"] platform: [ubuntu-latest] runs-on: ${{ matrix.platform }} steps: diff --git a/.github/workflows/unit-test.yaml b/.github/workflows/unit-test.yaml index 8906ad1..0481098 100644 --- a/.github/workflows/unit-test.yaml +++ b/.github/workflows/unit-test.yaml @@ -8,7 +8,7 @@ jobs: strategy: matrix: # test the lower bounds of support, and the latest available - go-version: ["1.20.x"] + go-version: ["1.21.x"] platform: [ubuntu-latest] runs-on: ${{ matrix.platform }} steps: diff --git a/go.mod b/go.mod index 3c6d202..202adf1 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/anchore/ecs-inventory -go 1.20 +go 1.21 require ( github.com/adrg/xdg v0.4.0