From 55d8424e215e38061297d50753de9ab9bcf3eccd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ewilan=20Rivi=C3=A8re?= Date: Thu, 30 May 2024 17:58:35 +0200 Subject: [PATCH] chore: Update .github/workflows/run-tests.yml to remove prefer-lowest stability option --- .github/workflows/run-tests-windows.yml | 48 +++++++++++++++++++++++++ .github/workflows/run-tests.yml | 4 +-- 2 files changed, 50 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/run-tests-windows.yml diff --git a/.github/workflows/run-tests-windows.yml b/.github/workflows/run-tests-windows.yml new file mode 100644 index 0000000..9c0fb1f --- /dev/null +++ b/.github/workflows/run-tests-windows.yml @@ -0,0 +1,48 @@ +name: Tests Windows + +on: + push: + paths: + - "**.php" + - ".github/workflows/run-tests.yml" + - "phpunit.xml.dist" + - "composer.json" + - "composer.lock" + +jobs: + test: + runs-on: ${{ matrix.os }} + timeout-minutes: 5 + strategy: + fail-fast: true + matrix: + os: [windows-latest] + php: [8.1] + stability: [prefer-stable] + + name: P${{ matrix.php }} - ${{ matrix.stability }} - ${{ matrix.os }} + + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - 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: Setup problem matchers + run: | + echo "::add-matcher::${{ runner.tool_cache }}/php.json" + echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json" + + - name: Install dependencies + run: composer update --${{ matrix.stability }} --prefer-dist --no-interaction + + - name: List Installed Dependencies + run: composer show -D + + - name: Execute tests + run: vendor/bin/pest --ci diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index 523748e..191909d 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -1,4 +1,4 @@ -name: Tests +name: Tests Linux on: push: @@ -16,7 +16,7 @@ jobs: strategy: fail-fast: true matrix: - os: [ubuntu-latest, windows-latest] + os: [ubuntu-latest] php: [8.3, 8.2, 8.1] stability: [prefer-stable]