From 0b84b0c08cbbb50f787164233b3d2c13ba1daed4 Mon Sep 17 00:00:00 2001 From: MartinOscar <40749467+rmartinoscar@users.noreply.github.com> Date: Fri, 28 Feb 2025 02:59:51 +0100 Subject: [PATCH] Make sure tests fails on composer error (#1034) * Remove `--prefer-dist` * Add missing args `--no-autoloader` `--no-suggest` `--no-progress` `--no-scripts` `--no-dev` --- .github/workflows/build.yaml | 2 +- .github/workflows/ci.yaml | 6 +++--- .github/workflows/lint.yaml | 4 ++-- .github/workflows/release.yaml | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index e7ba6e717..a7832c67f 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -29,7 +29,7 @@ jobs: coverage: none - name: Install PHP dependencies - run: composer install --no-interaction --no-suggest --prefer-dist + run: composer install --no-interaction --no-suggest --no-progress --no-autoloader --no-scripts --no-dev - name: Setup Node uses: actions/setup-node@v4 diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 06dd733c2..d1d95bafa 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -66,7 +66,7 @@ jobs: coverage: none - name: Install dependencies - run: composer install --no-interaction --no-suggest --prefer-dist + run: composer install --no-interaction --no-suggest --no-progress --no-scripts - name: Unit tests run: vendor/bin/pest tests/Unit @@ -139,7 +139,7 @@ jobs: coverage: none - name: Install dependencies - run: composer install --no-interaction --no-suggest --prefer-dist + run: composer install --no-interaction --no-suggest --no-progress --no-scripts - name: Unit tests run: vendor/bin/pest tests/Unit @@ -200,7 +200,7 @@ jobs: coverage: none - name: Install dependencies - run: composer install --no-interaction --no-suggest --prefer-dist + run: composer install --no-interaction --no-suggest --no-progress --no-scripts - name: Create SQLite file run: touch database/testing.sqlite diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml index 0b767fcf7..4078a718a 100644 --- a/.github/workflows/lint.yaml +++ b/.github/workflows/lint.yaml @@ -25,7 +25,7 @@ jobs: run: cp .env.example .env - name: Install dependencies - run: composer install --no-interaction --no-progress --prefer-dist + run: composer install --no-interaction --no-suggest --no-progress --no-autoloader --no-scripts - name: Pint run: vendor/bin/pint --test @@ -48,7 +48,7 @@ jobs: run: cp .env.example .env - name: Install dependencies - run: composer install --no-interaction --no-progress --prefer-dist + run: composer install --no-interaction --no-suggest --no-progress --no-scripts - name: PHPStan run: vendor/bin/phpstan --memory-limit=-1 diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 9d76b2ad5..bb18fc626 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -25,7 +25,7 @@ jobs: coverage: none - name: Install PHP dependencies - run: composer install --no-interaction --no-suggest --prefer-dist + run: composer install --no-interaction --no-suggest --no-progress --no-autoloader --no-scripts --no-dev - name: Setup Node uses: actions/setup-node@v4