From 3aebbc37cfa043b8a83c04fbd8c4c85743e17566 Mon Sep 17 00:00:00 2001 From: Andreas Deininger Date: Sat, 10 Feb 2024 19:45:36 +0100 Subject: [PATCH] ci: bump workflow action, avoid warning --- .github/workflows/apidiff.yaml | 9 +++++---- .github/workflows/tests.yaml | 7 ++++--- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/.github/workflows/apidiff.yaml b/.github/workflows/apidiff.yaml index 37c0b5f..734f131 100644 --- a/.github/workflows/apidiff.yaml +++ b/.github/workflows/apidiff.yaml @@ -10,15 +10,16 @@ jobs: compat: runs-on: ubuntu-latest steps: - - uses: actions/setup-go@v4 + - uses: actions/setup-go@v5 with: - go-version: 1.21 + cache: false + go-version: 1.22 - run: go install golang.org/x/exp/cmd/apidiff@latest - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: ref: master - run: apidiff -w uuid.baseline . - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: clean: false - run: | diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index 138397c..9991020 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -10,11 +10,12 @@ jobs: unit-tests: strategy: matrix: - go-version: [1.19, 1.20.x, 1.21] + go-version: [1.20.x, 1.21.x, 1.22] runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - uses: actions/setup-go@v4 + - uses: actions/checkout@v4 + - uses: actions/setup-go@v5 with: + cache: false go-version: ${{ matrix.go-version }} - run: go test -v ./...