Skip to content

Commit

Permalink
Requre specific deps for GHA unit test run
Browse files Browse the repository at this point in the history
  • Loading branch information
cicnavi committed Jan 24, 2025
1 parent 9eccc9d commit 8aba967
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@ jobs:
matrix:
operating-system: [ubuntu-latest]
php-versions: ['8.2', '8.3']
jwt-version: ['^3.4', '^4.0']

steps:
- name: Setup PHP, with composer and extensions
Expand Down Expand Up @@ -191,6 +192,9 @@ jobs:
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: ${{ runner.os }}-composer-

- name: Require specific dependencies
run: composer require web-token/jwt-framework:${{ matrix.jwt-version }} --no-update

- name: Install Composer dependencies
run: composer install --no-progress --prefer-dist --optimize-autoloader

Expand Down Expand Up @@ -218,6 +222,7 @@ jobs:
matrix:
operating-system: [windows-latest]
php-versions: ['8.2', '8.3']
jwt-version: ['^3.4', '^4.0']

steps:
- name: Setup PHP, with composer and extensions
Expand Down Expand Up @@ -253,6 +258,9 @@ jobs:
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: ${{ runner.os }}-composer-

- name: Require specific dependencies
run: composer require web-token/jwt-framework:${{ matrix.jwt-version }} --no-update

- name: Install Composer dependencies
run: composer install --no-progress --prefer-dist --optimize-autoloader

Expand Down

0 comments on commit 8aba967

Please sign in to comment.