From 8f11bb2ee6949b9e73e6027ac803def4b0a7ac1a Mon Sep 17 00:00:00 2001 From: Simon Deziel Date: Tue, 7 May 2024 20:16:02 -0400 Subject: [PATCH] github: check go compat earlier Signed-off-by: Simon Deziel --- .github/workflows/tests.yml | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 2346bfa60..b1aa4cb60 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -31,6 +31,16 @@ jobs: # A non-shallow clone is needed for the Differential ShellCheck fetch-depth: 0 + - name: Install Go + uses: actions/setup-go@v5 + with: + go-version: 1.22.x + + - name: Check compatibility with min Go version (1.22.0) + run: | + set -eux + go mod tidy -go=1.22.0 + - name: Dependency Review uses: actions/dependency-review-action@v4 if: github.event_name == 'pull_request' @@ -50,16 +60,6 @@ jobs: path: ${{ steps.ShellCheck.outputs.sarif }} if: github.event_name == 'pull_request' - - name: Install Go - uses: actions/setup-go@v5 - with: - go-version: 1.22.x - - - name: Check compatibility with min Go version (1.22.0) - run: | - set -eux - go mod tidy -go=1.22.0 - - name: Install dependencies run: | sudo add-apt-repository ppa:dqlite/dev -y --no-update