diff --git a/.github/workflows/run-tests-old.yml b/.github/workflows/run-tests-old.yml new file mode 100644 index 0000000..137c0f2 --- /dev/null +++ b/.github/workflows/run-tests-old.yml @@ -0,0 +1,41 @@ +name: run-tests-old + +on: [push, pull_request] + +jobs: + test: + runs-on: ${{ matrix.os }} + strategy: + fail-fast: true + matrix: + os: [ubuntu-latest] + php: [7.4, 8.0] + laravel: [8.*] + dependency-version: [prefer-stable] + include: + - laravel: 8.* + testbench: 6.* + + name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.dependency-version }} - ${{ matrix.os }} + + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Setup PHP + uses: shivammathur/setup-php@v2 + with: + php-version: ${{ matrix.php }} + extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick, fileinfo + coverage: none + + - name: Install dependencies + run: | + composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update + composer config "http-basic.nova.laravel.com" "${{ secrets.NOVA_USERNAME }}" "${{ secrets.NOVA_PASSWORD }}" + composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction + env: + COMPOSER_AUTH: ${{ secrets.COMPOSER_AUTH }} + + - name: Execute tests + run: vendor/bin/phpunit diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index 2b15e0c..da875fa 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -9,15 +9,12 @@ jobs: fail-fast: true matrix: os: [ubuntu-latest] - php: [7.4, 8.0] - laravel: [8.*, 9.*] + php: [8.0, 8.1] + laravel: [9.*] dependency-version: [prefer-stable] include: - - laravel: 8.* - testbench: 6.* - laravel: 9.* testbench: 7.* - php: 8.0 name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.dependency-version }} - ${{ matrix.os }}