Skip to content

Commit b2766a3

Browse files
authored
Merge pull request #188 from Flowpack/feature/custom-graphql-adapter
FEATURE: Custom graphql adapter
2 parents f7ac8d7 + e980301 commit b2766a3

File tree

564 files changed

+12689
-9805
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

564 files changed

+12689
-9805
lines changed

.gitattributes

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@
44
Plugin.js binary
55
Plugin.css binary
66

7-
/Resources/Private/JavaScript export-ignore
8-
/Tests export-ignore
7+
/packages export-ignore
98
/.yarn export-ignore
109
/.env export-ignore
1110
/.github export-ignore

.github/workflows/tests.yml

Lines changed: 23 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ on:
66
pull_request:
77
branches: [ main ]
88

9+
env:
10+
YARN_ENABLE_IMMUTABLE_INSTALLS: false
11+
PACKAGE_FOLDER: media-ui
12+
913
jobs:
1014
lint:
1115
runs-on: ubuntu-latest
@@ -50,6 +54,7 @@ jobs:
5054
uses: php-actions/phpstan@v3
5155
with:
5256
php_version: 8.1
57+
version: 2.1.17
5358
command: analyse
5459
path: 'Classes/'
5560

@@ -64,10 +69,14 @@ jobs:
6469
fail-fast: false
6570
matrix:
6671
php-versions: ['8.1']
67-
flow-versions: ['7.3']
72+
flow-versions: ['8.3']
6873

6974
steps:
70-
- uses: actions/checkout@v2
75+
- uses: actions/checkout@v3
76+
77+
- name: Set package branch name
78+
run: echo "PACKAGE_TARGET_VERSION=${GITHUB_BASE_REF:-${GITHUB_REF#refs/heads/}}" >> $GITHUB_ENV
79+
working-directory: .
7180

7281
- name: Setup PHP
7382
uses: shivammathur/setup-php@v2
@@ -78,7 +87,7 @@ jobs:
7887
ini-values: opcache.fast_shutdown=0
7988

8089
- name: Cache dependencies
81-
uses: actions/cache@v2
90+
uses: actions/cache@v3
8291
with:
8392
path: ~/.composer/cache
8493
key: dependencies-composer-${{ hashFiles('composer.json') }}
@@ -87,14 +96,17 @@ jobs:
8796
run: |
8897
git clone https://github.com/neos/flow-base-distribution.git -b ${{ matrix.flow-versions }} ${FLOW_FOLDER}
8998
cd ${FLOW_FOLDER}
90-
composer require --no-update --no-interaction flowpack/media-ui
99+
composer require --no-update --no-interaction flowpack/entity-usage:"^1.1"
100+
composer require --no-update --no-interaction flowpack/entity-usage-databasestorage:"^0.1"
101+
102+
git -C ../${{ env.PACKAGE_FOLDER }} checkout -b build
103+
composer config repositories.package '{ "type": "path", "url": "../${{ env.PACKAGE_FOLDER }}", "options": { "symlink": false } }'
104+
composer require --no-update --no-interaction flowpack/media-ui:"dev-build as dev-${PACKAGE_TARGET_VERSION}"
91105
92-
- name: Install distribution
106+
- name: Composer Install
93107
run: |
94108
cd ${FLOW_FOLDER}
95-
composer install --no-interaction --no-progress
96-
rm -rf Packages/Application/Flowpack.Media.Ui
97-
cp -r ../media-ui Packages/Application/Flowpack.Media.Ui
109+
composer update --no-interaction --no-progress
98110
99111
- name: Run Unit tests
100112
run: |
@@ -126,6 +138,7 @@ jobs:
126138
env:
127139
# Solves error when parcel tries to count cpus via lscpu
128140
PARCEL_WORKERS: 1
141+
DEBUG: 'testcafe:tested-app:*'
129142

130143
runs-on: ubuntu-latest
131144

@@ -146,11 +159,11 @@ jobs:
146159
run: yarn build:plugin
147160

148161
- name: Run TestCafe
149-
run: yarn test:github-actions
162+
run: yarn test:e2e:github-actions
150163

151164
- name: Archive failure screenshots
152165
if: ${{ failure() }}
153-
uses: actions/upload-artifact@v3
166+
uses: actions/upload-artifact@v4
154167
with:
155168
name: e2e-failure-screenshots
156169
path: screenshots

.gitignore

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,14 @@ node_modules
1414
!.yarn/releases
1515
!.yarn/sdks
1616
!.yarn/versions
17-
Packages
18-
vendor
19-
composer.lock
17+
yarn-error.log
2018
/.parcel-cache
19+
.cache
2120

2221
#
2322
# Compiled assets.
2423
#
25-
.cache
26-
Resources/Private/JavaScript/dev-server/dist
27-
yarn-error.log
24+
/packages/dev-server/dist
2825

2926
#
3027
# editors / IDEs

.mocharc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"extension": ["ts"],
3-
"spec": "Resources/Private/JavaScript/**/*.spec.ts",
3+
"spec": "packages/**/*.spec.ts",
44
"require": "ts-node/register"
55
}

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
16
1+
22

.testcaferc.json

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,20 @@
11
{
22
"browsers": {
3-
"path": "chromium",
3+
"path": "firefox",
44
"cmd": "--window-size=1280,720"
55
},
6-
"src": ["Resources/Private/JavaScript/media-module/tests/**/*.ts"],
7-
"appCommand": "yarn ts-node --project Resources/Private/JavaScript/dev-server/tsconfig.json Resources/Private/JavaScript/dev-server/src/server.ts",
6+
"src": ["packages/media-module/tests/**/*.ts"],
7+
"appCommand": "yarn dev:test",
8+
"appInitDelay": 2000,
89
"screenshots": {
910
"takeOnFails": true
1011
},
12+
"debugOnFail": false,
1113
"stopOnFirstFail": true,
12-
"hostname": "localhost",
14+
"hostname": "127.0.0.1",
15+
"baseUrl": "http://127.0.0.1:8000",
1316
"retryTestPages": true,
1417
"pageLoadTimeout": 10000,
1518
"pageRequestTimeout": 60000,
16-
"skipJsErrors": {
17-
"stack": "/.*chrome-extension.*/ig"
18-
}
19+
"skipJsErrors": true
1920
}

.yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs

Lines changed: 0 additions & 541 deletions
This file was deleted.

.yarn/plugins/@yarnpkg/plugin-workspace-tools.cjs

Lines changed: 0 additions & 28 deletions
This file was deleted.

.yarn/releases/yarn-3.4.1.cjs

Lines changed: 0 additions & 873 deletions
This file was deleted.

.yarn/releases/yarn-4.9.1.cjs

Lines changed: 948 additions & 0 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)