Merge pull request #104 from invokable/composer-update #104
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: | |
| pull_request: | |
| permissions: | |
| id-token: write | |
| contents: read | |
| jobs: | |
| test: | |
| name: tests | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup PHP, with composer and extensions | |
| uses: shivammathur/setup-php@v2 #https://github.com/shivammathur/setup-php | |
| with: | |
| php-version: 8.4 | |
| extensions: mbstring | |
| coverage: xdebug | |
| - name: Install Composer dependencies | |
| run: composer install -q | |
| - name: Setup Laravel environment | |
| run: cp .env.example .env && php artisan key:generate | |
| - name: Run migrations | |
| run: php artisan migrate --env=testing | |
| - name: Test | |
| run: vendor/bin/phpunit | |
| - name: Code Coverage | |
| uses: qltysh/qlty-action/coverage@v1 | |
| with: | |
| oidc: true | |
| files: build/logs/clover.xml |