Skip to content

Commit

Permalink
chore(tests.yml): update dependencies installation
Browse files Browse the repository at this point in the history
- Added a new step to install dependencies
- Updated the composer command to require specific packages
- Added composer update command after package installation
  • Loading branch information
guanguans committed Aug 12, 2023
1 parent 3d62165 commit bbc54f6
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ jobs:
- laravel: 10.*
php: 8.0

name: P${{ matrix.php }} - ${{ matrix.dependency-version }} - ${{ matrix.os }}
# name: P${{ matrix.php }} - ${{ matrix.dependency-version }} - ${{ matrix.os }}
name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.dependency-version }}

steps:
- name: Checkout code
Expand All @@ -52,8 +53,13 @@ jobs:
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick
coverage: xdebug

# - name: Install dependencies
# run: composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction --ansi -v

- name: Install dependencies
run: composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction --ansi -v
run: |
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" "nesbot/carbon:>=2.62.1" --no-interaction --no-update
composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction
- name: Execute tests
run: composer test-coverage
Expand Down

0 comments on commit bbc54f6

Please sign in to comment.