mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-08-21 18:01:11 +00:00
chore: add MariaDB to daily tests (#8810)
- Add the oldest and newest supported version of MariaDB to the daily tests to be run against the integration tests. - Ref: https://codeberg.org/forgejo/forgejo/pulls/8691 Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/8810 Reviewed-by: Earl Warren <earl-warren@noreply.codeberg.org> Co-authored-by: Gusted <postmaster@gusted.xyz> Co-committed-by: Gusted <postmaster@gusted.xyz>
This commit is contained in:
parent
b51f97e97d
commit
bc0c2b7d0d
1 changed files with 31 additions and 0 deletions
|
@ -66,3 +66,34 @@ jobs:
|
||||||
RACE_ENABLED: true
|
RACE_ENABLED: true
|
||||||
TEST_TAGS: sqlite sqlite_unlock_notify
|
TEST_TAGS: sqlite sqlite_unlock_notify
|
||||||
USE_REPO_TEST_DIR: 1
|
USE_REPO_TEST_DIR: 1
|
||||||
|
test-mariadb:
|
||||||
|
# if: vars.ROLE == 'forgejo-coding'
|
||||||
|
if: vars.ROLE == 'forgejo-integration'
|
||||||
|
runs-on: docker
|
||||||
|
name: ${{ format('test-mariadb (v{0})', matrix.version) }}
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
version: ['10.6', '11.8']
|
||||||
|
container:
|
||||||
|
image: 'data.forgejo.org/oci/node:22-bookworm'
|
||||||
|
options: --tmpfs /tmp:exec,noatime
|
||||||
|
services:
|
||||||
|
mysql:
|
||||||
|
image: ${{ format('data.forgejo.org/oci/mariadb:{0}', matrix.version) }}
|
||||||
|
env:
|
||||||
|
MARIADB_ALLOW_EMPTY_ROOT_PASSWORD: yes
|
||||||
|
MARIADB_DATABASE: testgitea
|
||||||
|
options: --tmpfs /mariadb/data:noatime
|
||||||
|
steps:
|
||||||
|
- uses: https://data.forgejo.org/actions/checkout@v4
|
||||||
|
- uses: ./.forgejo/workflows-composite/setup-env
|
||||||
|
- name: install dependencies & git >= 2.42
|
||||||
|
uses: ./.forgejo/workflows-composite/apt-install-from
|
||||||
|
with:
|
||||||
|
packages: git git-lfs
|
||||||
|
- uses: ./.forgejo/workflows-composite/build-backend
|
||||||
|
- run: |
|
||||||
|
su forgejo -c 'make test-mysql-migration test-mysql'
|
||||||
|
timeout-minutes: 120
|
||||||
|
env:
|
||||||
|
USE_REPO_TEST_DIR: 1
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue