Update github actions dependencies to latest version #17
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: Tests | |
on: | |
push: | |
branches: [ main, '[0-9]+.x' ] | |
pull_request: | |
branches: [ main, '[0-9]+.x' ] | |
workflow_dispatch: # Allow manual triggering on any branch via `gh workflow run tests.yml -r branch-name` | |
jobs: | |
build: | |
env: | |
FLOW_PATH_ROOT: ../neos-base-distribution | |
PACKAGE_FOLDER: neos-seo | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- php-version: "8.2" | |
neos-version: "9.0" | |
- php-version: "8.3" | |
neos-version: "9.0" | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Set package branch name | |
run: echo "PACKAGE_TARGET_VERSION=${GITHUB_BASE_REF:-${GITHUB_REF#refs/heads/}}" >> $GITHUB_ENV | |
working-directory: . | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php-version }} | |
extensions: mbstring, xml, json, zlib, iconv, intl, pdo_sqlite, mysql | |
- id: composer-cache | |
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT | |
shell: bash | |
- uses: actions/cache@v4 | |
with: | |
path: ${{ steps.composer-cache.outputs.dir }} | |
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }} | |
restore-keys: ${{ runner.os }}-composer- | |
- name: Prepare Neos distribution | |
run: | | |
pwd | |
git clone --depth 1 --branch ${{ matrix.neos-version }} https://github.com/neos/neos-development-distribution.git ${FLOW_PATH_ROOT} | |
cd ${FLOW_PATH_ROOT} | |
composer config --no-plugins allow-plugins.neos/composer-plugin true | |
pwd | |
ls -la .. | |
ls -la ../neos-seo | |
git -C ../${{ env.PACKAGE_FOLDER }} checkout -b build | |
composer config repositories.package '{ "type": "path", "url": "../${{ env.PACKAGE_FOLDER }}", "options": { "symlink": false } }' | |
composer require --no-update --no-interaction neos/seo:"dev-build as dev-${PACKAGE_TARGET_VERSION}" | |
composer require --dev --no-update --no-interaction phpstan/phpstan:^1.10 | |
cat composer.json | |
- name: Install dependencies | |
run: | | |
cd ${FLOW_PATH_ROOT} | |
rm -rf composer.lock | |
composer install --no-interaction --no-progress --prefer-dist | |
- name: Linting | |
run: | | |
cd ${FLOW_PATH_ROOT}/Packages/Application/Neos.Seo | |
composer run lint:phpstan |