Update code-style.yml #143
This file contains 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: read-all | ||
jobs: | ||
laravel: | ||
runs-on: ${{ secrets.RUNNER_NAME }} | ||
Check failure on line 9 in .github/workflows/tests.yml GitHub Actions / TestsInvalid workflow file
|
||
strategy: | ||
fail-fast: true | ||
matrix: | ||
php: [ "8.1", "8.2", "8.3" ] | ||
laravel: [ "10.0", "11.0" ] | ||
exclude: | ||
- laravel: "11.0" | ||
php: "8.1" | ||
name: PHP ${{ matrix.php }}, Laravel ${{ matrix.laravel }} | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
- name: Setup PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: ${{ matrix.php }} | ||
extensions: curl, mbstring, zip, pcntl, pdo, pdo_sqlite, iconv | ||
coverage: xdebug | ||
- name: Install dependencies | ||
run: composer require laravel/framework:^${{ matrix.laravel }} | ||
- name: Execute tests | ||
run: php vendor/bin/pest --compact |