From 452ec31ba7a3a6e0b2fc7b26f817d9d52cff167b Mon Sep 17 00:00:00 2001 From: Brandon Shipley Date: Tue, 12 Aug 2025 00:05:38 -0700 Subject: [PATCH] workflow test --- .gitea/workflows/ci.yaml | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/.gitea/workflows/ci.yaml b/.gitea/workflows/ci.yaml index 421ebd4..1652495 100644 --- a/.gitea/workflows/ci.yaml +++ b/.gitea/workflows/ci.yaml @@ -12,7 +12,8 @@ jobs: fail-fast: false matrix: php-version: ['8.1', '8.4'] - db-type: ['sqlite', 'mysql', 'pgsql'] + db-type: ['mysql'] + # db-type: ['sqlite', 'mysql', 'pgsql'] prefer-lowest: [''] include: - php-version: '8.1' @@ -20,12 +21,12 @@ jobs: prefer-lowest: 'prefer-lowest' services: - postgres: - image: postgres - ports: - - 5432:5432 - env: - POSTGRES_PASSWORD: postgres +# postgres: +# image: postgres +# ports: +# - 5432:5432 +# env: +# POSTGRES_PASSWORD: postgres mysql8: image: mysql:8.0 env: @@ -45,7 +46,6 @@ jobs: apt-key adv --keyserver keyserver.ubuntu.com --recv-keys B7B3B788A8D3785C apt-get update apt install -y default-mysql-client - sleep 120 mysql -h mysql8 -u root -e 'CREATE DATABASE cakephp;' - name: Setup PHP @@ -82,12 +82,12 @@ jobs: - name: Wait for MySQL if: matrix.db-type == 'mysql' - run: while ! `mysqladmin ping -h 127.0.0.1 --silent`; do printf 'Waiting for MySQL...\n'; sleep 2; done; + run: while ! `mysqladmin ping -h mysql8 --silent`; do printf 'Waiting for MySQL...\n'; sleep 2; done; - name: Run PHPUnit run: | if [[ ${{ matrix.db-type }} == 'sqlite' ]]; then export DB_URL='sqlite:///:memory:'; fi - if [[ ${{ matrix.db-type }} == 'mysql' ]]; then export DB_URL='mysql://root:root@127.0.0.1/cakephp?encoding=utf8'; fi + if [[ ${{ matrix.db-type }} == 'mysql' ]]; then export DB_URL='mysql://root:root@mysql8/cakephp?encoding=utf8'; fi if [[ ${{ matrix.db-type }} == 'pgsql' ]]; then export DB_URL='postgres://postgres:postgres@127.0.0.1/postgres'; fi if [[ ${{ matrix.php-version }} == '8.1' ]]; then vendor/bin/phpunit --coverage-clover=coverage.xml