Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Task/composer cache #44

Merged
merged 2 commits into from
Jan 27, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 37 additions & 15 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
name: tests

on: [push, pull_request]
on:
push:
branches:
- main
pull_request:

jobs:
lint:
Expand All @@ -14,16 +18,20 @@ jobs:
name: Validate composer.json
run: composer validate

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

-
name: Cache composer dependencies
uses: actions/cache@v4
with:
path: ~/.composer/cache
key: composer
path: ${{ steps.composer-cache.outputs.dir }}
key: composer-

-
name: Install composer dependencies
run: composer install --prefer-dist --no-progress --no-suggest
run: composer install --prefer-dist --no-progress

-
name: PHP Linting
Expand Down Expand Up @@ -59,16 +67,23 @@ jobs:
php-version: ${{ matrix.php-versions }}
extensions: intl, mbstring, pdo_sqlite

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

-
name: Cache composer dependencies
uses: actions/cache@v4
with:
path: ~/.composer/cache
key: php-${{ matrix.php-versions }}-typo3-${{ matrix.typo3-versions }}
path: ${{ steps.composer-cache.outputs.dir }}
key: composer-php-${{ matrix.php-versions }}-typo3-${{ matrix.typo3-versions }}
restore-keys: |
composer-php-${{ matrix.php-versions }}-
composer-

-
name: Install composer dependencies
run: composer require typo3/minimal "^${{ matrix.typo3-versions }}" --prefer-dist --no-progress --no-suggest
run: composer require typo3/minimal "^${{ matrix.typo3-versions }}" --prefer-dist --no-progress

-
name: Unit Testing
Expand Down Expand Up @@ -103,22 +118,29 @@ jobs:
php-version: ${{ matrix.php-versions }}
extensions: intl, mbstring, pdo_sqlite

-
name: Setup GraphicsMagick
run: |
sudo apt-get update
sudo apt-get install -y graphicsmagick
# -
# name: Setup GraphicsMagick
# run: |
# sudo apt-get update
# sudo apt-get install -y graphicsmagick

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

-
name: Cache composer dependencies
uses: actions/cache@v4
with:
path: ~/.composer/cache
key: php-${{ matrix.php-versions }}-typo3-${{ matrix.typo3-versions }}
path: ${{ steps.composer-cache.outputs.dir }}
key: composer-php-${{ matrix.php-versions }}-typo3-${{ matrix.typo3-versions }}
restore-keys: |
composer-php-${{ matrix.php-versions }}-
composer-

-
name: Install composer dependencies
run: composer require typo3/minimal "^${{ matrix.typo3-versions }}" --prefer-dist --no-progress --no-suggest
run: composer require typo3/minimal "^${{ matrix.typo3-versions }}" --prefer-dist --no-progress

-
name: Functional testing
Expand Down
Loading