Skip to content

Commit

Permalink
Do not cache composer deps anymore in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sfroemkenjw committed Nov 8, 2023
1 parent b17e05e commit 31a5918
Showing 1 changed file with 4 additions and 20 deletions.
24 changes: 4 additions & 20 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Setup PHP ${{ matrix.php }}, with composer and extensions
uses: shivammathur/setup-php@v2
Expand All @@ -43,35 +43,19 @@ jobs:
- name: Validate composer.json and composer.lock
run: composer validate

- name: Downgrade composer to 2.1 until problem with stream-wrapper is solved
# @see: https://github.com/composer/composer/issues/10387
# @see: https://github.com/sebastianbergmann/phpunit/pull/4846
run: composer self-update 2.1.14

- name: Get composer cache directory
id: composer-cache
run: echo "::set-output name=dir::$(composer config cache-files-dir)"

- name: Cache composer dependencies
uses: actions/cache@v2
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}
restore-keys: ${{ runner.os }}-composer-

- name: Install dependencies with typo3/cms-core:${{ matrix.typo3 }}
run: |
composer require typo3/cms-core:${{ matrix.typo3 }} --no-progress
# EXT:extensionmanager is needed by static_info_tables for TYPO3 10
composer require typo3/cms-extensionmanager:${{ matrix.typo3 }} --no-progress
git checkout composer.json
- name: php-cs-fixer
run: composer ci:php:fixer

- name: Lint PHP
run: composer ci:php:lint

- name: php-cs-fixer
run: composer ci:php:fixer

- name: Unit Tests
run: php .build/vendor/bin/phpunit -c .build/vendor/nimut/testing-framework/res/Configuration/UnitTests.xml Tests/Unit

Expand Down

0 comments on commit 31a5918

Please sign in to comment.