Skip to content

fix ci regression and add caching #429

fix ci regression and add caching

fix ci regression and add caching #429

Workflow file for this run

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

View workflow run for this annotation

GitHub Actions / CI

Invalid workflow file

The workflow is not valid. .github/workflows/ci.yml (Line: 43, Col: 17): Unrecognized named-value: 'VARNISH_MODULES_VERSION'. Located at position 1 within expression: VARNISH_MODULES_VERSION .github/workflows/ci.yml (Line: 44, Col: 16): Unrecognized named-value: 'VARNISH_MODULES_VERSION'. Located at position 1 within expression: VARNISH_MODULES_VERSION
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