Skip to content

Commit 5051cbe

Browse files
committed
[BUGFIX] Fix CI
1 parent 23d6344 commit 5051cbe

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

.github/workflows/test.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,20 +21,20 @@ jobs:
2121
php-version: "8.2"
2222
tools: composer
2323

24-
- name: Validate composer.json and composer.lock
25-
run: composer validate --strict
24+
- name: Validate composer.json
25+
run: composer validate --no-check-lock
2626

2727
- name: Cache Composer packages
2828
id: composer-cache
2929
uses: actions/cache@v4
3030
with:
3131
path: vendor
32-
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
32+
key: ${{ runner.os }}-lint-php8.2-${{ hashFiles('**/composer.json') }}
3333
restore-keys: |
34-
${{ runner.os }}-php-
34+
${{ runner.os }}-lint-php8.2-
3535
3636
- name: Install dependencies
37-
run: composer install --prefer-dist --no-progress
37+
run: composer update --prefer-dist --no-progress
3838

3939
- name: PHPStan
4040
run: vendor/bin/phpstan analyse --no-progress Classes/ Tests/Unit
@@ -69,12 +69,12 @@ jobs:
6969
uses: actions/cache@v4
7070
with:
7171
path: vendor
72-
key: ${{ runner.os }}-php-${{ matrix.php-version }}
72+
key: ${{ runner.os }}-php-${{ matrix.php-version }}-${{ hashFiles('**/composer.json') }}
7373
restore-keys: |
74-
${{ runner.os }}-php-${{ matrix.php-version }}
74+
${{ runner.os }}-php-${{ matrix.php-version }}-
7575
7676
- name: Install dependencies
77-
run: composer install --prefer-dist --no-progress
77+
run: composer update --prefer-dist --no-progress
7878

7979
- name: PHPUnit
8080
run: vendor/bin/phpunit --log-junit phpunit-report.xml

0 commit comments

Comments
 (0)