Enhance MessageEventDefinition execution logic to handle null tokens gracefully #115
Workflow file for this run
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: SonarQube | |
| on: | |
| push: | |
| branches: | |
| - develop | |
| - next | |
| pull_request: | |
| types: [opened, synchronize, reopened, edited] | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v2 | |
| with: | |
| fetch-depth: 0 | |
| - name: Update Composer | |
| run: sudo composer self-update | |
| - name: Cache Composer dependencies | |
| id: composer-cache | |
| uses: actions/cache@v4 | |
| with: | |
| path: vendor | |
| key: composer-v1-${{ hashFiles('composer.json') }} | |
| restore-keys: | | |
| composer-v1- | |
| - name: Setup PHP | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: "8.2" | |
| extensions: xdebug | |
| coverage: xdebug | |
| ini-values: xdebug.mode=coverage | |
| - name: Install Composer dependencies | |
| run: composer install -n --prefer-dist | |
| - name: Run PHPUnit tests | |
| run: ./vendor/bin/phpunit -d memory_limit=-1 | |
| - name: Check coverage | |
| run: ./check_coverage.php | |
| - uses: sonarsource/sonarqube-scan-action@master | |
| env: | |
| SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} | |
| SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }} |