-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
61 additions
and
92 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
name: CI | ||
|
||
on: | ||
push: | ||
pull_request: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
runs-on: ${{ matrix.operating-system }} | ||
strategy: | ||
matrix: | ||
operating-system: [ubuntu-latest] | ||
php-versions: ['7.4', '8.0', '8.2'] | ||
|
||
steps: | ||
- name: Checkout source | ||
uses: actions/checkout@v3 | ||
|
||
- name: Setup PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: ${{ matrix.php-versions }} | ||
ini-values: date.timezone="Europe/London" | ||
|
||
- name: Setup Apache | ||
uses: thunder/apache-shiva-php-action@v1 | ||
with: | ||
php-version: ${{ matrix.php-versions }} | ||
site-directory: $GITHUB_WORKSPACE | ||
http-port: 8080 | ||
|
||
- name: Install Composer dependencies | ||
uses: ramsey/composer-install@v2 | ||
with: | ||
composer-options: "--no-dev" | ||
|
||
- name: Create configuration | ||
run: | | ||
cp config/config.example.php config/config.php | ||
sed -i -e "s,'pass' => '','pass' => 'root',g" config/config.php | ||
printf "[client]\nuser=root\npassword=root\n" > ~/.my.cnf | ||
- name: Setup database | ||
run: | | ||
sudo systemctl start mysql.service | ||
mysql -e 'CREATE DATABASE zookeeper' | ||
mysql zookeeper < db/zkdbSchema.sql | ||
mysql zookeeper < db/categories.sql | ||
mysql zookeeper < db/chartemail.sql | ||
mysql zookeeper < db/bootstrapUser.sql | ||
- name: Validate | ||
run: php zk validate url=http://127.0.0.1:8080/ |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters