This repository has been archived by the owner on Feb 1, 2024. It is now read-only.
Not sure why this was failing. #28
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
name: Tests | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
php-versions: ['7.0', '7.1', '7.2', '7.3', '7.4', '8.0'] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Start mysql | |
run: | | |
(echo '[mysqld]'; echo 'default-authentication-plugin=mysql_native_password') | sudo sh -c "cat > /etc/mysql/conf.d/nativepassword.cnf" | |
sudo systemctl start mysql | |
mysql -V | |
- name: Prepare the application | |
run: | | |
sudo lib/createdb.sh -u root -proot -c test/options.php --batch | |
sudo lib/createdb.sh -u root -proot -c test/cdb-options.php --no-dbuser --batch | |
- name: Set up PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php-versions }} | |
extensions: mbstring, intl, mysqlnd | |
- name: Install poppler | |
run: | | |
sudo apt-get --fix-broken install | |
sudo apt-get install poppler-utils | |
- name: Run tests | |
run: sh test/check.sh | |
build-18: | |
runs-on: ubuntu-18.04 | |
strategy: | |
matrix: | |
php-versions: ['7.3', '8.0'] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Start mysql | |
run: | | |
(echo '[mysqld]'; echo 'default-authentication-plugin=mysql_native_password') | sudo sh -c "cat > /etc/mysql/conf.d/nativepassword.cnf" | |
sudo /etc/init.d/mysql start | |
mysql -V | |
- name: Prepare the application | |
run: | | |
sudo lib/createdb.sh -u root -proot -c test/options.php --batch | |
sudo lib/createdb.sh -u root -proot -c test/cdb-options.php --no-dbuser --batch | |
- name: Set up PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php-versions }} | |
extensions: mbstring, intl, mysqlnd | |
- name: Install poppler | |
run: sudo apt-get install poppler-utils | |
- name: Run tests | |
run: sh test/check.sh |