π Update license year #35
Workflow file for this run
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: test | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
psalm: | |
name: Run Psalm | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
php-version: | |
- "8.0" | |
- "8.1" | |
- "8.2" | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php-version }} | |
tools: composer | |
- name: Validate composer.json and composer.lock | |
run: composer validate --strict | |
- name: Cache Composer packages | |
id: composer-cache | |
uses: actions/cache@v2 | |
with: | |
path: | | |
~/.composer/cache | |
vendor | |
key: php-${{ matrix.php-version }} | |
restore-keys: php-${{ matrix.php-version }} | |
- name: Install dependencies | |
run: composer install --prefer-dist --no-progress | |
- name: Run Psalm | |
run: composer psalm -- --php-version=${{ matrix.php-version }} --shepherd | |
phpunit: | |
name: Run PHPUnit | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
php-version: | |
- "8.0" | |
- "8.1" | |
- "8.2" | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php-version }} | |
tools: composer | |
- name: Validate composer.json and composer.lock | |
run: composer validate --strict | |
- name: Cache Composer packages | |
id: composer-cache | |
uses: actions/cache@v2 | |
with: | |
path: | | |
~/.composer/cache | |
vendor | |
key: php-${{ matrix.php-version }} | |
restore-keys: php-${{ matrix.php-version }} | |
- name: Install dependencies | |
run: composer install --prefer-dist --no-progress | |
- name: Run PHPUnit | |
run: composer phpunit | |
infection: | |
name: Run Infection | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
php-version: | |
- "8.0" | |
- "8.1" | |
- "8.2" | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php-version }} | |
coverage: xdebug | |
tools: composer | |
env: | |
fail-fast: true | |
- name: Validate composer.json and composer.lock | |
run: composer validate --strict | |
- name: Cache Composer packages | |
id: composer-cache | |
uses: actions/cache@v2 | |
with: | |
path: | | |
~/.composer/cache | |
vendor | |
key: php-${{ matrix.php-version }} | |
restore-keys: php-${{ matrix.php-version }} | |
- name: Install dependencies | |
run: composer install --prefer-dist --no-progress | |
- name: Run Infection | |
run: composer infection | |
env: | |
INFECTION_BADGE_API_KEY: ${{ secrets.INFECTION_BADGE_API_KEY }} |