diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 2346bfa6..b1aa4cb6 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