Skip to content

BUGFIX: Prevent json parse error #27

BUGFIX: Prevent json parse error

BUGFIX: Prevent json parse error #27

Workflow file for this run

name: Tests
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
neosVersion:
- '7.3'
- '8.2'
name: 'Terminal with Neos ${{ matrix.neosVersion }} test'
env:
NEOS_TARGET_VERSION: ${{matrix.neosVersion}}
FLOW_CONTEXT: Testing
FLOW_FOLDER: ../neos-base-distribution
steps:
- uses: actions/checkout@v2
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.1
tools: composer:v2
- name: Get composer cache directory
id: composer-cache
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
- name: Cache dependencies
uses: actions/cache@v2
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ matrix.neosVersion }}-${{ hashFiles('**/composer.json') }}
restore-keys: ${{ runner.os }}-composer-${{ matrix.neosVersion }}-
- name: Prepare Flow distribution
run: |
git clone https://github.com/neos/neos-base-distribution.git -b ${NEOS_TARGET_VERSION} ${FLOW_FOLDER}
cd ${FLOW_FOLDER}
composer require --no-update --no-interaction shel/neos-terminal
- name: Install distribution
run: |
cd ${FLOW_FOLDER}
composer config --no-plugins allow-plugins.neos/composer-plugin true
composer install --no-interaction --no-progress
rm -rf Packages/Plugins/Shel.Neos.Terminal
cp -r ../Shel.Neos.Terminal Packages/Plugins/Shel.Neos.Terminal
- name: Run Functional tests
run: |
cd ${FLOW_FOLDER}
bin/phpunit --colors -c Build/BuildEssentials/PhpUnit/FunctionalTests.xml Packages/Plugins/Shel.Neos.Terminal/Tests/Functional/*