Enhancements: platform independent line separator, minor fixes #20
Workflow file for this run
This file contains hidden or 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: CI | |
on: | |
push: | |
branches: [ "master" ] | |
pull_request: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
php-version: ['7.4', '8.0', '8.1', '8.2', '8.3', '8.4'] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up PHP ${{ matrix.php-version }} | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php-version }} | |
tools: composer, phpunit | |
- name: Install dependencies | |
run: composer update --prefer-dist --no-progress | |
- name: Run test suite (PHPUnit) | |
run: composer test | |
static-analysis: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: '8.3' | |
tools: composer, psalm | |
- name: Install dependencies | |
run: composer update --prefer-dist --no-progress | |
- name: Run Psalm | |
run: composer psalm | |
fix-style: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: '8.3' | |
tools: composer | |
- name: Install dependencies | |
run: composer update --prefer-dist --no-progress | |
- name: Run PHP-CS-Fixer | |
run: composer fixer |