From 280c2681bee2fc67b497c6595a209397e215f833 Mon Sep 17 00:00:00 2001 From: Joachim Bauch Date: Wed, 3 Apr 2024 10:09:34 +0200 Subject: [PATCH] CI: Check dependencies for minimum supported version. --- .github/workflows/lint.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index a400508..0667ea1 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -43,3 +43,22 @@ jobs: skip-cache: true skip-pkg-cache: true skip-build-cache: true + + dependencies: + name: dependencies + runs-on: ubuntu-latest + continue-on-error: true + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-go@v5 + with: + go-version: "stable" + + - name: Check minimum supported version of Go + run: | + go mod tidy -go=1.20 -compat=1.20 + + - name: Check go.mod / go.sum + run: | + git add go.* + git diff --cached --exit-code go.*