Skip to content

Merge pull request #985 from OPUS4/4.7.1.2 #2179

Merge pull request #985 from OPUS4/4.7.1.2

Merge pull request #985 from OPUS4/4.7.1.2 #2179

Workflow file for this run

name: PHP Composer
on:
push:
pull_request:
types: [ assigned, opened, synchronize, reopened ]
schedule:
- cron: '30 1 * * *'
jobs:
build:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Setup PHP 7.1
uses: shivammathur/setup-php@v2
with:
php-version: '7.1'
- name: Install Composer and Dependencies
run: sudo apt-get update && curl -s http://getcomposer.org/installer | php && php composer.phar self-update && php composer.phar install
- name: Fix for issue 502
run: sudo apt-get --fix-broken install
- name: Install additional Software
run: sudo apt-get install libxml2-utils
- name: Solr
run: sudo bash bin/install_solr_docker.sh
- name: Start MySQL
run: sudo systemctl start mysql.service
- name: Prepare database
run: export MYSQL_PWD=root && mysql --default-character-set=utf8 -h 'localhost' -P '3306' -u 'root' -v -e "CREATE DATABASE IF NOT EXISTS opusdb DEFAULT CHARACTER SET = UTF8 DEFAULT COLLATE = UTF8_GENERAL_CI; CREATE USER 'opus4admin'@'localhost' IDENTIFIED WITH mysql_native_password BY 'root'; GRANT ALL PRIVILEGES ON opusdb.* TO 'opus4admin'@'localhost'; CREATE USER 'opus4'@'localhost' IDENTIFIED WITH mysql_native_password BY 'root'; GRANT SELECT,INSERT,UPDATE,DELETE ON opusdb.* TO 'opus4'@'localhost'; FLUSH PRIVILEGES;"
- name: Prepare
run: ant prepare-workspace prepare-test-workspace prepare-config lint reset-testdata -DdbUserPassword=root -DdbAdminPassword=root
- name: Mail-Server
run: php scripts/opus-smtp-dumpserver.php 2>&1 >> tests/workspace/log/opus-smtp-dumpserver.log &
- name: Test-library
run: php composer.phar test -- --testsuite library
- name: Test-modules
run: php composer.phar test -- --testsuite modules
- name: Test-admin
run: php composer.phar test -- --testsuite admin
- name: Test-security
run: php composer.phar test -- --testsuite security
- name: Test-scripts
run: php composer.phar test -- --testsuite scripts
- name: Coding-Style
run: php composer.phar cs-check