summaryrefslogtreecommitdiffstats
path: root/.github/workflows
diff options
context:
space:
mode:
authorsilverwind <me@silverwind.io>2023-10-03 19:27:57 +0200
committerGitHub <noreply@github.com>2023-10-03 13:27:57 -0400
commite94f9fcafdcf284561e7fb33f60156a69c4ad6a5 (patch)
tree0e7761f657573002cdbf5ae16a797fa75e6f2d45 /.github/workflows
parent1c9990c16f3b6f9e249587d90d7ae93785196d4b (diff)
downloadgitea-e94f9fcafdcf284561e7fb33f60156a69c4ad6a5.tar.gz
gitea-e94f9fcafdcf284561e7fb33f60156a69c4ad6a5.zip
Require MySQL 8.0, PostgreSQL 12, MSSQL 2012 (#27337)
- MySQL 5.7 support and testing is dropped - MySQL tests now execute against 8.1, up from 5.7 and 8.0 - PostgreSQL 10 and 11 support ist dropped - PostgreSQL tests now execute against 16, up from 15 - MSSQL 2008 support is dropped - MSSQL tests now run against locked 2022 version Fixes: https://github.com/go-gitea/gitea/issues/25657 Ref: https://endoflife.date/mysql Ref: https://endoflife.date/postgresql Ref: https://endoflife.date/mssqlserver ## :warning: BREAKING :warning: Support for MySQL 5.7, PostgreSQL 10 and 11, and MSSQL 2008 is dropped. You are encouraged to upgrade to supported versions. --------- Co-authored-by: techknowlogick <techknowlogick@gitea.com>
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/pull-db-tests.yml42
1 files changed, 6 insertions, 36 deletions
diff --git a/.github/workflows/pull-db-tests.yml b/.github/workflows/pull-db-tests.yml
index 22b2600c96..c4005648b7 100644
--- a/.github/workflows/pull-db-tests.yml
+++ b/.github/workflows/pull-db-tests.yml
@@ -17,7 +17,7 @@ jobs:
runs-on: ubuntu-latest
services:
pgsql:
- image: postgres:15
+ image: postgres:16
env:
POSTGRES_DB: test
POSTGRES_PASSWORD: postgres
@@ -86,7 +86,7 @@ jobs:
runs-on: ubuntu-latest
services:
mysql:
- image: mysql:5.7
+ image: mysql:8.1
env:
MYSQL_ALLOW_EMPTY_PASSWORD: true
MYSQL_DATABASE: test
@@ -152,16 +152,16 @@ jobs:
RACE_ENABLED: true
GITHUB_READ_TOKEN: ${{ secrets.GITHUB_READ_TOKEN }}
- test-mysql5:
+ test-mysql:
if: needs.files-changed.outputs.backend == 'true' || needs.files-changed.outputs.actions == 'true'
needs: files-changed
runs-on: ubuntu-latest
services:
mysql:
- image: mysql:5.7
+ image: mysql:8.1
env:
MYSQL_ALLOW_EMPTY_PASSWORD: true
- MYSQL_DATABASE: test
+ MYSQL_DATABASE: testgitea
ports:
- "3306:3306"
elasticsearch:
@@ -197,43 +197,13 @@ jobs:
USE_REPO_TEST_DIR: 1
TEST_INDEXER_CODE_ES_URL: "http://elastic:changeme@elasticsearch:9200"
- test-mysql8:
- if: needs.files-changed.outputs.backend == 'true' || needs.files-changed.outputs.actions == 'true'
- needs: files-changed
- runs-on: ubuntu-latest
- services:
- mysql8:
- image: mysql:8
- env:
- MYSQL_ALLOW_EMPTY_PASSWORD: true
- MYSQL_DATABASE: testgitea
- ports:
- - "3306:3306"
- steps:
- - uses: actions/checkout@v4
- - uses: actions/setup-go@v4
- with:
- 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'
- - run: make deps-backend
- - run: make backend
- env:
- TAGS: bindata
- - run: make test-mysql8-migration test-mysql8
- timeout-minutes: 50
- env:
- TAGS: bindata
- USE_REPO_TEST_DIR: 1
-
test-mssql:
if: needs.files-changed.outputs.backend == 'true' || needs.files-changed.outputs.actions == 'true'
needs: files-changed
runs-on: ubuntu-latest
services:
mssql:
- image: mcr.microsoft.com/mssql/server:latest
+ image: mcr.microsoft.com/mssql/server:2022-latest
env:
ACCEPT_EULA: Y
MSSQL_PID: Standard