-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Upmerge nodetemplates version 2 changes into version 3-dev
- Loading branch information
Showing
76 changed files
with
2,261 additions
and
832 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
name: Tests | ||
|
||
on: | ||
push: | ||
branches: [ main, '[0-9]+.[0-9]' ] | ||
pull_request: | ||
branches: [ main, '[0-9]+.[0-9]' ] | ||
workflow_dispatch: # Allow manual triggering on any branch via `gh workflow run tests.yml -r branch-name` | ||
|
||
jobs: | ||
build: | ||
env: | ||
FLOW_CONTEXT: Testing | ||
FLOW_PATH_ROOT: ../neos-base-distribution | ||
|
||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
include: | ||
- php-version: 7.4 | ||
neos-version: 7.3 | ||
- php-version: 8.1 | ||
neos-version: 8.3 | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
|
||
- 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@v2 | ||
with: | ||
path: ${{ steps.composer-cache.outputs.dir }} | ||
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }} | ||
restore-keys: ${{ runner.os }}-composer- | ||
|
||
- name: Prepare Neos distribution | ||
run: | | ||
git clone --depth 1 --branch ${{ matrix.neos-version }} https://github.com/neos/neos-base-distribution.git ${FLOW_PATH_ROOT} | ||
cd ${FLOW_PATH_ROOT} | ||
composer config --no-plugins allow-plugins.neos/composer-plugin true | ||
composer config repositories.tested-package path ../Flowpack.NodeTemplates | ||
composer require --no-update --no-interaction flowpack/nodetemplates:@dev | ||
- name: Install dependencies | ||
run: | | ||
cd ${FLOW_PATH_ROOT} | ||
composer install --no-interaction --no-progress --prefer-dist | ||
- name: Run Unit tests | ||
run: | | ||
cd ${FLOW_PATH_ROOT} | ||
bin/phpunit --colors -c Build/BuildEssentials/PhpUnit/UnitTests.xml Packages/Application/Flowpack.NodeTemplates/Tests/Unit | ||
- name: Run Functional tests | ||
run: | | ||
cd ${FLOW_PATH_ROOT} | ||
bin/phpunit --colors -c Build/BuildEssentials/PhpUnit/FunctionalTests.xml Packages/Application/Flowpack.NodeTemplates/Tests/Functional |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Flowpack\NodeTemplates\Domain\NodeCreation; | ||
|
||
class InvalidReferenceException extends \RuntimeException | ||
{ | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<?php | ||
|
||
namespace Flowpack\NodeTemplates\Domain\NodeCreation; | ||
|
||
class NodeConstraintException extends \RuntimeException | ||
{ | ||
} |
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
Oops, something went wrong.