Skip to content

Testing

Testing #1794

Workflow file for this run

name: Testing
on:
push:
pull_request:
types: [assigned, opened, synchronize, reopened]
schedule:
- cron: '0 22 * * *'
jobs:
build:
runs-on: ubuntu-22.04
strategy:
matrix:
php-versions: ['8.1', '8.2']
name: PHP ${{ matrix.php-versions }} Test
steps:
- uses: actions/checkout@v3
- name: Setup PHP ${{ matrix.php-versions }}
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
- name: Check PHP Version
run: php -v
- name: Update Ubuntu packages
run: sudo apt-get update
- name: Install Composer and Dependencies
run: curl -s http://getcomposer.org/installer | php && php composer.phar self-update && php composer.phar install
- name: Start MySQL
run: sudo systemctl start mysql.service
- name: Prepare workspace
run: ant prepare-workspace
- name: Prepare database
run: bash bin/opus4db --sqlpwd root --adminpwd root --userpwd root
- name: Check PHP files
run: ant lint
- name: Tests
run: php composer.phar test
- name: Coding-Style
run: php composer.phar cs-check