Exclude dev files from archive for dist #19
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: CodeChecks | |
on: | |
push: | |
pull_request: | |
jobs: | |
tests: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
php: | |
- '7.4' | |
- '8.0' | |
- '8.1' | |
name: PHP ${{ matrix.php }} tests | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Set up PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php }} | |
coverage: xdebug | |
- name: Cache Composer packages | |
id: composer-cache | |
uses: actions/cache@v3 | |
with: | |
path: vendor | |
key: ${{ runner.os }}-php${{ matrix.php }}-${{ hashFiles('**/composer.lock') }} | |
restore-keys: | | |
${{ runner.os }}-php${{ matrix.php }}- | |
- name: Composer | |
run: composer install --no-progress | |
- name: Check CS | |
run: vendor/bin/ecs | |
- name: PHPUnit | |
run: vendor/bin/phpunit --coverage-clover=coverage.xml | |
- name: "Upload coverage to Codecov" | |
uses: "codecov/codecov-action@v3" |