From b814f11b5f72c53e651abb57a4a168d5e2b5e39e Mon Sep 17 00:00:00 2001 From: smiley Date: Sun, 25 Aug 2024 20:17:43 +0200 Subject: [PATCH] :octocat: run MySQL on CI --- .github/workflows/ci.yml | 19 +++++++++++-------- phpunit.xml.dist | 4 ++++ 2 files changed, 15 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8273416..7412ca6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,6 +1,9 @@ # https://help.github.com/en/categories/automating-your-workflow-with-github-actions # https://github.com/sebastianbergmann/phpunit/blob/master/.github/workflows/ci.yml +# https://github.com/ikalnytskyi/action-setup-postgres +# https://github.com/marketplace/actions/actions-setup-mysql + name: "Continuous Integration" on: @@ -113,19 +116,19 @@ jobs: - name: "Install Postgres" uses: ikalnytskyi/action-setup-postgres@v6 with: + postgres-version: 14 username: postgres password: root database: dbtest port: 5432 -# - name: "Install MySQL" -# uses: shogo82148/actions-setup-mysql@v1 -# with: -# mysql-version: '5.7' -# auto-start: true -# -# - name: "Create MySQL test database" -# run: mysql --user="root" --host="127.0.0.1" -e "CREATE DATABASE dbtest character set UTF8mb4 collate utf8mb4_bin;" + - name: "Install MySQL" + uses: shogo82148/actions-setup-mysql@v1 + with: + mysql-version: "8.0" + + - name: "Create MySQL test database" + run: mysql --user="root" --host="127.0.0.1" -e "CREATE DATABASE dbtest character set UTF8mb4 collate utf8mb4_bin;" # - name: "Install Firebird (Linux)" # if: ${{ runner.os == 'Linux' }} diff --git a/phpunit.xml.dist b/phpunit.xml.dist index 0c53580..5837c43 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -26,7 +26,11 @@ firebird mssql +