summaryrefslogtreecommitdiffstats
path: root/.github/workflows/pull-db-tests.yml
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows/pull-db-tests.yml')
-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