Blame | Last modification | View Log | Download
# This workflow will install PHP dependencies, run tests and lint with a variety of PHP versions# For more information see: https://github.com/marketplace/actions/setup-php-actionname: php-saml 4.x packageon:push:branches: [ 4.* ]pull_request:branches: [ 4.* ]jobs:test:runs-on: ${{ matrix.operating-system }}strategy:fail-fast: falsematrix:operating-system: ['ubuntu-latest']php-versions: [7.3, 7.4, 8.0, 8.1]steps:- name: Setup PHP, with composer and extensionsuses: shivammathur/setup-php@v2 #https://github.com/shivammathur/setup-phpwith:php-version: ${{ matrix.php-versions }}extensions: mbstring, intl, mcrypt, xmltools: composer:v2ini-values: post_max_size=256M, max_execution_time=180coverage: xdebug- name: Set git to use LFrun: |git config --global core.autocrlf falsegit config --global core.eol lf- uses: actions/checkout@v2- name: Validate composer.json and composer.lockrun: composer validate- name: Install Composer dependenciesrun: |composer self-updatecomposer install --prefer-source --no-interaction- name: Syntax check PHPrun: |php vendor/bin/phpcpd --exclude tests --exclude vendor .php vendor/bin/phploc src/.mkdir -p tests/build/dependencesphp vendor/bin/pdepend --summary-xml=tests/build/logs/dependence-summary.xml --jdepend-chart=tests/build/dependences/jdepend.svg --overview-pyramid=tests/build/dependences/pyramid.svg src/.- name: PHP Code Snifferrun: php vendor/bin/phpcs --standard=tests/ZendModStandard src/Saml2 demo1 demo2 endpoints tests/src- name: Run unit testsrun: vendor/bin/phpunit --verbose --debug