feat(error-type-mapping): adds support to map the error types in the … #285
This file contains hidden or 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: Tests | |
| on: | |
| push: | |
| branches: [ "master" ] | |
| pull_request: | |
| branches: [ "master" ] | |
| permissions: | |
| contents: read | |
| jobs: | |
| test: | |
| name: PHP ${{ matrix.php }} on ${{ matrix.os }} | |
| runs-on: ${{ matrix.os }} | |
| if: "! contains(toJSON(github.event.head_commit.message), 'skip ci')" | |
| strategy: | |
| matrix: | |
| os: [ubuntu-latest] # windows-latest, macos-latest | |
| php: ['7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3', '8.4'] | |
| include: | |
| - php: 7.2 | |
| phpunit: 7 | |
| - php: 7.3 | |
| phpunit: 7 | |
| - php: 7.4 | |
| phpunit: 7 | |
| - php: 8.0 | |
| phpunit: 8 | |
| - php: 8.1 | |
| phpunit: 9 | |
| - php: 8.2 | |
| phpunit: 9 | |
| - php: 8.3 | |
| phpunit: 9 | |
| - php: 8.4 | |
| phpunit: 9 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v3 | |
| - name: Set up PHP | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: ${{ matrix.php }} | |
| - name: Cache Composer dependencies | |
| id: cache | |
| uses: actions/cache@v3 | |
| with: | |
| path: ~/.composer/cache/files | |
| key: ${{ matrix.os }}-core-lib-${{ matrix.php }}-composer-${{ hashFiles('**/composer.lock') }} | |
| restore-keys: ${{ matrix.os }}-core-lib-${{ matrix.php }}-composer- | |
| - name: Update dependencies | |
| run: composer update | |
| - name: Check style src | |
| run: composer lint-src | |
| - name: Check style test | |
| run: composer lint-test | |
| - name: Run phan analysis | |
| run: composer analyze | |
| - name: Run tests | |
| run: composer test-ci | |
| - name: SonarQube Scan | |
| if: ${{ matrix.os == 'ubuntu-latest' && matrix.php == '8.1' && github.actor != 'dependabot[bot]' }} | |
| uses: SonarSource/sonarqube-scan-action@v6.0.0 | |
| env: | |
| SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |