[0.x] Add mare to ci (#29) #90
This file contains 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, pull_request ] | |
jobs: | |
ci: | |
name: "CI" | |
runs-on: ${{ matrix.operating-system }} | |
strategy: | |
matrix: | |
operating-system: [ ubuntu-latest, windows-latest, macos-latest ] | |
php-version: [ 8.3 ] | |
steps: | |
# --------- Setup steps --------- | |
- name: "Checkout" | |
uses: actions/checkout@v3 | |
- name: "Setup PHP" | |
uses: shivammathur/setup-php@v2 | |
with: | |
coverage: "pcov" | |
php-version: "${{ matrix.php-version }}" | |
ini-values: memory_limit=-1 | |
extensions: pcov, xdebug | |
- name: "Install dependencies" | |
uses: ramsey/composer-install@v2 | |
# --------- Run steps --------- | |
- name: "Unit Tests" | |
run: "composer test" | |
- name: "Coding Style" | |
run: "composer cs-check" | |
if: matrix.operating-system == 'ubuntu-latest' | |
- name: "Psalm Static Analysis" | |
run: "composer psalm" | |
if: matrix.operating-system == 'ubuntu-latest' | |
- name: "Mare Static Analysis" | |
run: "composer mare" | |
if: matrix.operating-system == 'ubuntu-latest' |