Fix php8.4 deprecations #418
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: PHP Composer | |
| on: | |
| push: | |
| branches: [ master ] | |
| pull_request: | |
| branches: [ master ] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - name: Install dependencies | |
| run: composer install --prefer-dist --no-progress | |
| - name: Cache Composer dependencies | |
| id: composer-cache | |
| uses: actions/cache@v3 | |
| with: | |
| path: vendor | |
| key: ${{ runner.os }}-php-${{ github.sha }} | |
| psalm: | |
| runs-on: ubuntu-latest | |
| needs: | |
| - build | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - name: Restore cached composer dependencies | |
| id: composer-cache | |
| uses: actions/cache@v3 | |
| with: | |
| path: vendor | |
| key: ${{ runner.os }}-php-${{ github.sha }} | |
| - name: Run psalm validation | |
| run: vendor/bin/psalm --output-format=github --shepherd | |
| test: | |
| runs-on: ubuntu-latest | |
| needs: | |
| - build | |
| - psalm | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: '8.1' | |
| coverage: xdebug | |
| - name: Restore cached composer dependencies | |
| id: composer-cache | |
| uses: actions/cache@v3 | |
| with: | |
| path: vendor | |
| key: ${{ runner.os }}-php-${{ github.sha }} | |
| - name: Run test suite | |
| run: php vendor/bin/phpunit | |
| # - name: Check PhpUnit coverage percentage | |
| # run: php vendor/bin/coverage-check build/logs/clover.xml 85 | |
| - name: Upload coverage results to Coveralls | |
| env: | |
| COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| run: php vendor/bin/php-coveralls --coverage_clover=build/logs/clover.xml -v |