From 8f4ceeefa6397d6c3a834e3e14b962d78097db4c Mon Sep 17 00:00:00 2001 From: Saade Date: Fri, 17 Feb 2023 10:16:48 -0300 Subject: [PATCH] Update GitHub Actions for Laravel 10 --- .github/workflows/tests.yml | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index cd0d528..e04f1d0 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -2,9 +2,9 @@ name: Tests on: push: + branches: + - main pull_request: - schedule: - - cron: '0 0 * * *' jobs: tests: @@ -13,14 +13,17 @@ jobs: strategy: fail-fast: true matrix: - php: [7.4, 8.0] - laravel: [^8.0] + php: ['8.0', 8.1, 8.2] + laravel: [9, 10] + exclude: + - php: '8.0' + laravel: 10 name: PHP ${{ matrix.php }} - Laravel ${{ matrix.laravel }} steps: - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Setup PHP uses: shivammathur/setup-php@v2 @@ -31,8 +34,7 @@ jobs: - name: Install dependencies run: | - composer require "illuminate/contracts=${{ matrix.laravel }}" --prefer-dist --no-interaction --no-update + composer require "illuminate/contracts=^${{ matrix.laravel }}" --prefer-dist --no-interaction --no-update composer update --prefer-dist --no-interaction --no-progress - - name: Execute tests - run: vendor/bin/phpunit --verbose + run: vendor/bin/phpunit --verbose \ No newline at end of file