Skip to content

Commit

Permalink
Update GitHub workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon Bäse committed Dec 24, 2024
1 parent 16c9143 commit 6b3f74f
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
- name: Setup Environment
run: |
sudo systemctl start mysql.service
mysql -e 'CREATE DATABASE db;' -u db -p db
mysql -e 'CREATE DATABASE db;' -u root -p root
sudo systemctl start apache2
- name: Unit & Kernel Tests
run: vendor/bin/phpunit --testsuite unit,kernel
Expand Down
14 changes: 14 additions & 0 deletions config/.env.ci
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
PROJECT_NAME=youvo

SITE_NAME=youvo.org
SITE_MAIL=hello@youvo.org
ACCOUNT_NAME=admin@youvo.org
ACCOUNT_MAIL=admin@youvo.org
ACCOUNT_PASS=admin

DB_NAME=db
DB_USER=root
DB_PASSWORD=root
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DRIVER=mysql
4 changes: 2 additions & 2 deletions scripts/install-ci.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
set -e

# Get variables.
set -a; source config/.env.local; set +a
set -a; source config/.env.ci; set +a
echo "Variables loaded ..."

# Reset settings.
Expand All @@ -27,7 +27,7 @@
cd ../../..
vendor/bin/drush si --yes --existing-config \
--locale=en \
--db-url="${DB_DRIVER}"://"${DB_USER}":"${DB_PASSWORD}"@127.0.0.1:"${DB_PORT}"/"${DB_NAME}" \
--db-url="${DB_DRIVER}"://"${DB_USER}":"${DB_PASSWORD}"@"${DB_HOST}":"${DB_PORT}"/"${DB_NAME}" \
--site-name="${SITE_NAME}" \
--site-mail="${SITE_MAIL}" \
--account-name="${ACCOUNT_NAME}" \
Expand Down

0 comments on commit 6b3f74f

Please sign in to comment.