66 pull_request :
77 branches : [ main ]
88
9+ env :
10+ PACKAGE_FOLDER : Shel.Neos.Terminal
11+
912jobs :
1013 build :
1114 runs-on : ubuntu-latest
@@ -23,40 +26,58 @@ jobs:
2326 FLOW_FOLDER : ../neos-base-distribution
2427
2528 steps :
26- - uses : actions/checkout@v3
27-
28- - name : Setup PHP
29- uses : shivammathur/setup-php@v2
30- with :
31- php-version : 8.3
32- tools : composer:v2
33-
34- - name : Get composer cache directory
35- id : composer-cache
36- run : echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
37-
38- - name : Cache dependencies
39- uses : actions/cache@v3
40- with :
41- path : ${{ steps.composer-cache.outputs.dir }}
42- key : ${{ runner.os }}-composer-${{ matrix.neosVersion }}-${{ hashFiles('**/composer.json') }}
43- restore-keys : ${{ runner.os }}-composer-${{ matrix.neosVersion }}-
44-
45- - name : Prepare Flow distribution
46- run : |
47- git clone https://github.com/neos/neos-base-distribution.git -b ${NEOS_TARGET_VERSION} ${FLOW_FOLDER}
48- cd ${FLOW_FOLDER}
49- composer require --no-update --no-interaction shel/neos-terminal
50-
51- - name : Install distribution
52- run : |
53- cd ${FLOW_FOLDER}
54- composer config --no-plugins allow-plugins.neos/composer-plugin true
55- composer install --no-interaction --no-progress
56- rm -rf Packages/Plugins/Shel.Neos.Terminal
57- cp -r ../Shel.Neos.Terminal Packages/Plugins/Shel.Neos.Terminal
58-
59- - name : Run Functional tests
60- run : |
61- cd ${FLOW_FOLDER}
62- bin/phpunit --colors -c Build/BuildEssentials/PhpUnit/FunctionalTests.xml Packages/Plugins/Shel.Neos.Terminal/Tests/Functional/*
29+ - uses : actions/checkout@v3
30+
31+ - name : Set package branch name
32+ run : echo "PACKAGE_TARGET_VERSION=${GITHUB_BASE_REF:-${GITHUB_REF#refs/heads/}}" >> $GITHUB_ENV
33+ working-directory : .
34+
35+ - name : Setup PHP
36+ uses : shivammathur/setup-php@v2
37+ with :
38+ php-version : 8.2
39+ extensions : mbstring, xml, json, zlib, iconv, intl, pdo_sqlite, mysql
40+ tools : composer:v2
41+
42+ - name : Cache dependencies
43+ uses : actions/cache@v3
44+ with :
45+ path : ${{ steps.composer-cache.outputs.dir }}
46+ key : ${{ runner.os }}-composer-${{ matrix.neosVersion }}-${{ hashFiles('**/composer.json') }}
47+ restore-keys : ${{ runner.os }}-composer-${{ matrix.neosVersion }}-
48+
49+ - name : Prepare Flow distribution
50+ run : |
51+ git clone https://github.com/neos/neos-base-distribution.git -b ${NEOS_TARGET_VERSION} ${FLOW_FOLDER}
52+ cd ${FLOW_FOLDER}
53+
54+ git -C ../${{ env.PACKAGE_FOLDER }} checkout -b build
55+ composer config repositories.package '{ "type": "path", "url": "../${{ env.PACKAGE_FOLDER }}", "options": { "symlink": false } }'
56+ composer require --no-update --no-interaction shel/neos-terminal:"dev-build as dev-${PACKAGE_TARGET_VERSION}"
57+ composer require --no-update --no-interaction neos/contentgraph-doctrinedbaladapter:"~9.0.0"
58+
59+ - name : Composer Install
60+ run : |
61+ cd ${FLOW_FOLDER}
62+ composer update --no-interaction --no-progress
63+
64+ - name : Setup Flow configuration
65+ run : |
66+ cd ${FLOW_FOLDER}
67+ rm -f Configuration/Testing/Settings.yaml
68+ cat <<EOF >> Configuration/Testing/Settings.yaml
69+ Neos:
70+ Flow:
71+ persistence:
72+ backendOptions:
73+ host: '127.0.0.1'
74+ driver: pdo_mysql
75+ user: 'neos'
76+ password: 'neos'
77+ dbname: 'neos_functional_testing'
78+ EOF
79+
80+ - name : Run Functional tests
81+ run : |
82+ cd ${FLOW_FOLDER}
83+ bin/phpunit --colors -c Build/BuildEssentials/PhpUnit/FunctionalTests.xml Packages/Plugins/Shel.Neos.Terminal/Tests/Functional/*
0 commit comments