From 7b2907b77c77e90399b7d6f5c8298f2f301fe4fe Mon Sep 17 00:00:00 2001 From: Naoray Date: Tue, 8 Feb 2022 10:14:49 +0100 Subject: [PATCH] wip --- .github/workflows/run-tests-old.yml | 41 +++++++++++++++++++++++++++++ .github/workflows/run-tests.yml | 7 ++--- 2 files changed, 43 insertions(+), 5 deletions(-) create mode 100644 .github/workflows/run-tests-old.yml 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 }}