-
-
Notifications
You must be signed in to change notification settings - Fork 5
63 lines (51 loc) · 1.79 KB
/
tests.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
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/*