crp_strconversion1 - modified conference and papers to program and application, respectively. #10
Workflow file for this run
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.1', '7.2', '7.3', '7.4', '8.0', '8.1', '8.2'] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- 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 --all | |
build-20: | |
runs-on: ubuntu-20.04 | |
strategy: | |
matrix: | |
php-versions: ['7.3', '8.0'] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- 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 update | |
sudo apt-get --fix-missing install poppler-utils | |
- name: Run tests | |
run: sh test/check.sh --all |