summaryrefslogtreecommitdiffstats
path: root/.github/workflows
diff options
context:
space:
mode:
authorsilverwind <me@silverwind.io>2023-08-10 23:53:44 +0200
committerGitHub <noreply@github.com>2023-08-10 21:53:44 +0000
commit1772814605d6c4ba70d20a525ccb5ef4c591f66a (patch)
treef2aabe980548223e2a6da9e7f2fb0feea040cf48 /.github/workflows
parent2cbd377e1f8d01c1e4a472f6ca5d770af63dbea4 (diff)
downloadgitea-1772814605d6c4ba70d20a525ccb5ef4c591f66a.tar.gz
gitea-1772814605d6c4ba70d20a525ccb5ef4c591f66a.zip
Lock go to 1.21 on CI (#26433)
To prevent unwanted surprises with new minor versions of go, lock the version to minor version using [semver tilde syntax](https://github.com/npm/node-semver#tilde-ranges-123-12-1). We were already getting 1.21.0 since yesterday, so use that version now as minimum.
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/cron-licenses.yml2
-rw-r--r--.github/workflows/pull-compliance.yml10
-rw-r--r--.github/workflows/pull-db-tests.yml12
-rw-r--r--.github/workflows/pull-e2e-tests.yml2
-rw-r--r--.github/workflows/release-nightly.yml2
5 files changed, 14 insertions, 14 deletions
diff --git a/.github/workflows/cron-licenses.yml b/.github/workflows/cron-licenses.yml
index 700d45a3c8..acdf7cd364 100644
--- a/.github/workflows/cron-licenses.yml
+++ b/.github/workflows/cron-licenses.yml
@@ -13,7 +13,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
- go-version: ">=1.20"
+ go-version: "~1.21"
check-latest: true
- run: make generate-license generate-gitignore
timeout-minutes: 40
diff --git a/.github/workflows/pull-compliance.yml b/.github/workflows/pull-compliance.yml
index 2b02b596fd..45dd77fd92 100644
--- a/.github/workflows/pull-compliance.yml
+++ b/.github/workflows/pull-compliance.yml
@@ -19,7 +19,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
- go-version: ">=1.20"
+ go-version: "~1.21"
check-latest: true
- run: make deps-backend deps-tools
- run: make lint-backend
@@ -59,7 +59,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
- go-version: ">=1.20"
+ go-version: "~1.21"
check-latest: true
- run: make deps-backend deps-tools
- run: make lint-go-windows lint-go-vet
@@ -76,7 +76,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
- go-version: ">=1.20"
+ go-version: "~1.21"
check-latest: true
- run: make deps-backend deps-tools
- run: make lint-go
@@ -91,7 +91,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
- go-version: ">=1.20"
+ go-version: "~1.21"
check-latest: true
- run: make deps-backend deps-tools
- run: make --always-make checks-backend # ensure the "go-licenses" make target runs
@@ -119,7 +119,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
- go-version: ">=1.20"
+ go-version: "~1.21"
check-latest: true
# no frontend build here as backend should be able to build
# even without any frontend files
diff --git a/.github/workflows/pull-db-tests.yml b/.github/workflows/pull-db-tests.yml
index 7cddaff63b..50c92a9e9b 100644
--- a/.github/workflows/pull-db-tests.yml
+++ b/.github/workflows/pull-db-tests.yml
@@ -41,7 +41,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
- go-version: ">=1.20"
+ go-version: "~1.21"
check-latest: true
- name: Add hosts to /etc/hosts
run: '[ -e "/.dockerenv" ] || [ -e "/run/.containerenv" ] || echo "127.0.0.1 pgsql ldap minio" | sudo tee -a /etc/hosts'
@@ -66,7 +66,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
- go-version: ">=1.20"
+ go-version: "~1.21"
check-latest: true
- run: make deps-backend
- run: make backend
@@ -131,7 +131,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
- go-version: ">=1.20"
+ go-version: "~1.21"
check-latest: true
- name: Add hosts to /etc/hosts
run: '[ -e "/.dockerenv" ] || [ -e "/run/.containerenv" ] || echo "127.0.0.1 mysql elasticsearch meilisearch smtpimap" | sudo tee -a /etc/hosts'
@@ -181,7 +181,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
- go-version: ">=1.20"
+ go-version: "~1.21"
check-latest: true
- name: Add hosts to /etc/hosts
run: '[ -e "/.dockerenv" ] || [ -e "/run/.containerenv" ] || echo "127.0.0.1 mysql elasticsearch smtpimap" | sudo tee -a /etc/hosts'
@@ -213,7 +213,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
- go-version: ">=1.20"
+ go-version: "~1.21"
check-latest: true
- name: Add hosts to /etc/hosts
run: '[ -e "/.dockerenv" ] || [ -e "/run/.containerenv" ] || echo "127.0.0.1 mysql8" | sudo tee -a /etc/hosts'
@@ -244,7 +244,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
- go-version: ">=1.20"
+ go-version: "~1.21"
check-latest: true
- name: Add hosts to /etc/hosts
run: '[ -e "/.dockerenv" ] || [ -e "/run/.containerenv" ] || echo "127.0.0.1 mssql" | sudo tee -a /etc/hosts'
diff --git a/.github/workflows/pull-e2e-tests.yml b/.github/workflows/pull-e2e-tests.yml
index 6577cfd240..7b950bfd38 100644
--- a/.github/workflows/pull-e2e-tests.yml
+++ b/.github/workflows/pull-e2e-tests.yml
@@ -19,7 +19,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
- go-version: ">=1.20"
+ go-version: "~1.21"
check-latest: true
- uses: actions/setup-node@v3
with:
diff --git a/.github/workflows/release-nightly.yml b/.github/workflows/release-nightly.yml
index 0e94f5217c..8387f615d9 100644
--- a/.github/workflows/release-nightly.yml
+++ b/.github/workflows/release-nightly.yml
@@ -14,7 +14,7 @@ jobs:
- run: git fetch --unshallow --quiet --tags --force
- uses: actions/setup-go@v4
with:
- go-version: ">=1.20"
+ go-version: "~1.21"
check-latest: true
- uses: actions/setup-node@v3
with: