Update used packages to their latest versions #3352
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: Run tests | |
| on: [push] | |
| jobs: | |
| tests: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: true | |
| matrix: | |
| php: [ 8.5 ] | |
| name: PHP ${{ matrix.php }} | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Setup PHP | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: ${{ matrix.php }} | |
| extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite | |
| coverage: none | |
| - name: Copy env file | |
| run: | |
| cp .env.test .env | |
| - name: Run composer update | |
| run: composer update --prefer-dist --no-interaction --no-progress --no-scripts | |
| - name: Generate app key | |
| run: | | |
| APP_KEY=$(php -r "echo 'base64:' . base64_encode(random_bytes(32));") | |
| sed -i "s|APP_KEY=.*|APP_KEY=$APP_KEY|" .env | |
| - name: Run tests | |
| run: vendor/bin/phpunit |