Skip to content

PHP Composer

PHP Composer #979

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-22.04
strategy:
matrix:
php-versions: ['8.1']
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: 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: Solr
run: sudo bash bin/install_solr_docker.sh
- name: Start MySQL
run: sudo systemctl start mysql.service
- name: Prepare workspace
run: ant prepare-workspace
- name: Prepare search config
run: ant prepare-config
- name: Prepare database
run: bash vendor/bin/opus4db --adminpwd root --userpwd root --sqlpwd root
- name: Basic PHP file check
run: ant lint
- name: Tests
run: php composer.phar test
- name: Coding Style
run: php composer.phar cs-check