fix ci regression and add caching #429
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | ||
on: | ||
push: | ||
branches: | ||
- "*.x" | ||
pull_request: | ||
env: | ||
DEPENDENCIES: 'toflar/psr6-symfony-http-cache-store:^2|^3|^4' | ||
SYMFONY_DEPRECATIONS_HELPER: 'max[self]=0' | ||
jobs: | ||
latest: | ||
env: | ||
VARNISH_VERSION: ${{ matrix.varnish-version }} | ||
VARNISH_MODULES_VERSION: ${{ matrix.varnish-modules-version }} | ||
name: PHP ${{ matrix.php }} Varnish ${{ matrix.varnish-version }} SF ${{ matrix.symfony-version }} | ||
runs-on: ubuntu-20.04 | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
varnish-version: ['6.6'] | ||
varnish-modules-version: ['0.18.0'] | ||
include: | ||
- php: '8.3' | ||
symfony-version: '7.*' | ||
steps: | ||
- name: Setup PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: ${{ matrix.php }} | ||
tools: composer:v2, flex | ||
coverage: none | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
- name: Cache module compilation | ||
uses: actions/cache@v3 | ||
with: | ||
path: /tmp/varnish-modules-${{ VARNISH_MODULES_VERSION }} | ||
Check failure on line 43 in .github/workflows/ci.yml
|
||
key: varnish-modules-${{ VARNISH_MODULES_VERSION }} | ||
- name: Setup Varnish and Nginx | ||
run: | | ||
sh ${GITHUB_WORKSPACE}/.github/workflows/setup-varnish.sh | ||
sh ${GITHUB_WORKSPACE}/.github/workflows/setup-nginx.sh | ||
- name: Install composer dependencies | ||
env: | ||
SYMFONY_REQUIRE: ${{ matrix.symfony-version }} | ||
run: | | ||
composer require --no-update ${DEPENDENCIES} | ||
composer update --prefer-dist --no-interaction --no-progress | ||
- name: Execute tests | ||
run: vendor/bin/phpunit |