Skip to content

Commit

Permalink
try removing collections in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
driesvints committed Sep 24, 2024
1 parent 25e20f5 commit 46c353b
Showing 1 changed file with 41 additions and 1 deletion.
42 changes: 41 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
matrix:
php: [8.1, 8.2, 8.3]

name: PHP ${{ matrix.php }}
name: PHP ${{ matrix.php }} - With Collections

steps:
- name: Checkout code
Expand All @@ -45,3 +45,43 @@ jobs:

- name: Execute tests
run: vendor/bin/pest

without_collections:
runs-on: ubuntu-22.04

strategy:
fail-fast: true
matrix:
php: [8.1, 8.2, 8.3]

name: PHP ${{ matrix.php }} - Without Collections

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
ini-values: error_reporting=E_ALL
tools: composer:v2
coverage: none

- name: Remove collections
uses: nick-fields/retry@v3
with:
timeout_minutes: 5
max_attempts: 5
command: composer remove illuminate/collections --dev --no-interaction --no-update

- name: Install dependencies
uses: nick-fields/retry@v2
with:
timeout_minutes: 5
max_attempts: 5
command: composer update --prefer-stable --prefer-dist --no-interaction --no-progress

- name: Execute tests
run: vendor/bin/pest

0 comments on commit 46c353b

Please sign in to comment.