From 989837ab750afd8cad7c9604ac35f68da0c6ada8 Mon Sep 17 00:00:00 2001 From: Anthony Fok Date: Fri, 22 Mar 2024 00:54:32 -0600 Subject: [PATCH] ci-test: Bump go version to 1.21 and 1.22 for testing Also use the latest GitHub Actions: - Bump actions/checkout@v3 to actions/checkout@v4 - Bump actions/setup-go@v3 to actions/setup-go@v5 - Bump actions/upload-artifact@v3 to actions/upload-artifact@v4 --- .github/workflows/ci-test.yml | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ci-test.yml b/.github/workflows/ci-test.yml index 52b5790..97bf632 100644 --- a/.github/workflows/ci-test.yml +++ b/.github/workflows/ci-test.yml @@ -1,6 +1,9 @@ name: CI Test -on: [push, pull_request, workflow_dispatch] +on: + push: + pull_request: + workflow_dispatch: jobs: ci-test: @@ -8,18 +11,17 @@ jobs: if: "!contains(github.event.head_commit.message, '[ci skip]') && !contains(github.event.head_commit.message, '[skip ci]')" strategy: matrix: - go-version: ['1.16.x', '1.17.x', '1.18.x'] - env: - GO111MODULE: on # Needed for github.com/google/go-github/v38 + go-version: ['1.21', '1.22'] steps: - - name: Checkout code - uses: actions/checkout@v3 + - name: Checkout + uses: actions/checkout@v4 - name: Install Go ${{ matrix.go-version }} - uses: actions/setup-go@v3 + uses: actions/setup-go@v5 with: go-version: ${{ matrix.go-version }} + check-latest: true - run: diff -u <(echo -n) <(gofmt -d -s .) @@ -46,7 +48,7 @@ jobs: ~/go/bin/dh-make-golang -type p -pristine-tar -program_package_name gh github.com/cli/cli - name: Upload dh-make-golang test run as artifact - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: dh-make-golang_test-run_go${{ matrix.go-version }} path: _test-run