Removed 'recipients'-support #41
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: Quality | |
on: [ push, pull_request ] | |
permissions: | |
contents: read | |
jobs: | |
quality: | |
strategy: | |
matrix: | |
operating-system: [ ubuntu-latest ] | |
php-versions: [ '7.4', '8.0', '8.1', '8.2', 'latest' ] | |
runs-on: ${{ matrix.operating-system }} | |
name: PHP ${{ matrix.php-versions }} on ${{ matrix.operating-system }} | |
steps: | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 # https://github.com/shivammathur/setup-php | |
with: | |
php-version: ${{ matrix.php-versions }} | |
# Shared extensions can be disabled by prefixing them with a :. | |
# All extensions depending on the specified extension will also be disabled. | |
extensions: mbstring, intl, :opcache | |
coverage: xdebug | |
- uses: actions/checkout@v3 | |
- name: Validate composer.json | |
run: composer validate --strict | |
- name: Install dependencies | |
run: composer install --prefer-dist --no-progress | |
- name: Security audit | |
run: composer audit | |
- name: ComposerRequireChecker | |
run: composer composer-require-checker | |
- name: Composer Unused | |
run: composer composer-unused | |
- name: composer-normalize | |
run: composer normalize --dry-run | |
- name: PHPUnit | |
run: php vendor/bin/phpunit --coverage-clover coverage.xml | |
env: | |
ONE_SIGNAL_TEST_APP_ID: "${{ secrets.ONE_SIGNAL_TEST_APP_ID }}" | |
ONE_SIGNAL_TEST_API_KEY: "${{ secrets.ONE_SIGNAL_TEST_API_KEY }}" | |
ONE_SIGNAL_TEST_DEFAULT_SEGMENT: "${{ secrets.ONE_SIGNAL_TEST_DEFAULT_SEGMENT }}" | |
ONE_SIGNAL_TEST_PLAYER_ID: "${{ secrets.ONE_SIGNAL_TEST_PLAYER_ID }}" | |
- name: Psalm | |
run: php -dxdebug.mode=off vendor/bin/psalm | |
- name: PHPStan | |
run: php -dxdebug.mode=off vendor/bin/phpstan analyse | |
- name: Code Sniffer | |
run: php -dxdebug.mode=off vendor/bin/phpcs | |
- name: Codecov | |
uses: codecov/codecov-action@v3 # https://github.com/marketplace/actions/codecov | |
with: | |
files: ./coverage.xml | |
token: ${{ secrets.CODECOV_TOKEN }} # not required for public repos | |
fail_ci_if_error: true # optional (default = false) | |
verbose: true # optional (default = false) |