From b5fc924f9ad75b009fb942e3024473c0fb3862c7 Mon Sep 17 00:00:00 2001 From: SuperQ Date: Fri, 4 Apr 2025 11:21:36 +0200 Subject: [PATCH] Update Go testing * Update CI to test all latest versions. * Bump GitHub actions and pin versions for supply chain security. * Enable dependabot to update GitHub actions. Signed-off-by: SuperQ --- .github/dependabot.yml | 6 ++++++ .github/workflows/test.yml | 13 ++++++++++--- 2 files changed, 16 insertions(+), 3 deletions(-) create mode 100644 .github/dependabot.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..3a626c3 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,6 @@ +version: 2 +updates: + - package-ecosystem: github-actions + directory: / + schedule: + interval: monthly diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 9288fef..f8637cd 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -9,16 +9,23 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - go-version: [ '1.18', '1.21' ] + go-version: + - '1.18.x' + - '1.19.x' + - '1.20.x' + - '1.21.x' + - '1.22.x' + - '1.23.x' + - '1.24.x' steps: - name: install memcached run: | sudo apt update sudo apt install memcached - - uses: actions/checkout@v3 + - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - name: Setup Go ${{ matrix.go-version }} - uses: actions/setup-go@v4 + uses: actions/setup-go@0aaccfd150d50ccaeb58ebd88d36e91967a5f35b # v5.4.0 with: go-version: ${{ matrix.go-version }} - name: Test