Skip to content

Commit

Permalink
github: check go compat earlier
Browse files Browse the repository at this point in the history
Signed-off-by: Simon Deziel <[email protected]>
  • Loading branch information
simondeziel committed May 8, 2024
1 parent 2482648 commit 8f11bb2
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand All @@ -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
Expand Down

0 comments on commit 8f11bb2

Please sign in to comment.