Merge pull request #21 from IlicMiljan/fix-parsing-tagged-encrypted-data #73
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: PHP CI | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
test: | |
name: PHP CI | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
php-version: [ '8.0' ] | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php-version }} | |
tools: composer:v2, phpunit | |
extensions: mbstring | |
coverage: xdebug | |
- name: Validate composer.json and composer.lock | |
run: composer validate | |
- name: Install Dependencies | |
run: composer update --prefer-dist --no-progress | |
- name: Run Unit Tests with PHPUnit | |
run: ./vendor/bin/phpunit --coverage-clover ./coverage.xml | |
- name: Check Code Style with PHP_CodeSniffer | |
run: ./vendor/bin/phpcs --standard=./phpcs.xml | |
- name: Static Analysis with PHPStan | |
run: ./vendor/bin/phpstan analyse -c phpstan.neon | |
- name: Upload Coverage Reports to Codecov | |
uses: codecov/codecov-action@v3 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
files: ./coverage.xml | |
verbose: true |