From 53269f7c26051ed06c10e9c7521f2b64e6d2b1b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20Rub=C3=A9l?= Date: Sat, 10 Dec 2022 19:55:02 +0100 Subject: [PATCH] =?UTF-8?q?Update=20testing=20workflows=20=F0=9F=A7=AA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/php-code-sniffer.yml | 35 -------------------------- .github/workflows/run-tests.yml | 13 +++------- 2 files changed, 4 insertions(+), 44 deletions(-) delete mode 100644 .github/workflows/php-code-sniffer.yml diff --git a/.github/workflows/php-code-sniffer.yml b/.github/workflows/php-code-sniffer.yml deleted file mode 100644 index 7eac412..0000000 --- a/.github/workflows/php-code-sniffer.yml +++ /dev/null @@ -1,35 +0,0 @@ -name: php-code-sniffer - -on: - push: - branches: - - main - pull_request: - branches: - - main - -jobs: - psalm: - name: phpcs - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - - name: Setup PHP - uses: shivammathur/setup-php@v2 - with: - php-version: '8.1' - extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick - coverage: none - - - name: Cache composer dependencies - uses: actions/cache@v2 - with: - path: vendor - key: composer-${{ hashFiles('composer.lock') }} - - - name: Run composer install - run: composer install -n --prefer-dist - - - name: Run phpcs - run: ./vendor/bin/phpcs diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index 54a0aaa..a1a85fd 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -13,14 +13,9 @@ jobs: fail-fast: true matrix: os: [ubuntu-latest, windows-latest] - php: [8.0, 8.1] - laravel: [^8.71, 9.*] + php: [8.0, 8.1, 8.2] + laravel: [9.*] stability: [prefer-lowest, prefer-stable] - include: - - testbench: 7.* - laravel: 9.* - - testbench: ^6.6 - laravel: ^8.71 name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }} - ${{ matrix.os }} @@ -32,7 +27,7 @@ jobs: 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 + extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, intl, gd, iconv, imagick, fileinfo coverage: xdebug - name: Setup problem matchers @@ -42,7 +37,7 @@ jobs: - name: Install dependencies run: | - composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update + composer require "laravel/framework:${{ matrix.laravel }}" "nesbot/carbon:^2.62.1" --dev --no-interaction --no-update composer update --${{ matrix.stability }} --prefer-dist --no-interaction - name: Execute tests