-
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from flownative/feature/flow-7-compatibility
Provide compatibility with Flow 7.0
- Loading branch information
Showing
9 changed files
with
412 additions
and
200 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,81 @@ | ||
name: CI | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
pull_request: | ||
branches: [ master ] | ||
|
||
jobs: | ||
tests: | ||
name: Tests | ||
|
||
runs-on: ${{ matrix.os }} | ||
|
||
env: | ||
PHP_EXTENSIONS: json, libxml, mbstring | ||
PHP_INI_VALUES: assert.exception=1, zend.assertions=1, pcov.directory=Classes | ||
|
||
strategy: | ||
matrix: | ||
os: | ||
- ubuntu-latest | ||
|
||
php-version: | ||
- "7.4" | ||
|
||
compiler: | ||
- default | ||
|
||
dependencies: | ||
- highest | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: Override PHP ini values for JIT compiler | ||
if: matrix.compiler == 'jit' | ||
run: echo "PHP_INI_VALUES=assert.exception=1, zend.assertions=1, opcache.enable=1, opcache.enable_cli=1, opcache.optimization_level=-1, opcache.jit=1205, opcache.jit_buffer_size=4096M" >> $GITHUB_ENV | ||
|
||
- name: Install PHP with extensions | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: ${{ matrix.php-version }} | ||
coverage: xdebug | ||
extensions: ${{ env.PHP_EXTENSIONS }} | ||
ini-values: ${{ env.PHP_INI_VALUES }} | ||
|
||
- name: Determine composer cache directory on Linux | ||
if: matrix.os == 'ubuntu-latest' | ||
run: echo "COMPOSER_CACHE_DIR=$(composer config cache-dir)" >> $GITHUB_ENV | ||
|
||
- name: Determine composer cache directory on Windows | ||
if: matrix.os == 'windows-latest' | ||
run: echo "COMPOSER_CACHE_DIR=~\AppData\Local\Composer" >> $GITHUB_ENV | ||
|
||
- name: Cache dependencies installed with composer | ||
uses: actions/cache@v1 | ||
with: | ||
path: ${{ env.COMPOSER_CACHE_DIR }} | ||
key: php${{ matrix.php-version }}-composer-${{ matrix.dependencies }}-${{ hashFiles('**/composer.json') }} | ||
restore-keys: | | ||
php${{ matrix.php-version }}-composer-${{ matrix.dependencies }}- | ||
- name: Install lowest dependencies with composer | ||
if: matrix.dependencies == 'lowest' | ||
run: composer update --no-ansi --no-interaction --no-progress --prefer-lowest | ||
|
||
- name: Install highest dependencies with composer | ||
if: matrix.dependencies == 'highest' | ||
run: composer update --no-ansi --no-interaction --no-progress | ||
|
||
- name: Show modules | ||
run: php -i; php -m | ||
|
||
- name: Run tests with phpunit | ||
run: vendor/bin/phpunit --coverage-clover=coverage.xml | ||
|
||
# - name: Send code coverage report to Codecov.io | ||
# uses: codecov/codecov-action@v1 | ||
# with: | ||
# token: ${{ secrets.CODECOV_TOKEN }} |
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
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 |
---|---|---|
@@ -1,18 +1,17 @@ | ||
Neos: | ||
Flow: | ||
http: | ||
chain: | ||
'process': | ||
chain: | ||
'Flownative.Prometheus:metricsExporter': | ||
'position': 'before routing' | ||
component: 'Flownative\Prometheus\Http\MetricsExporterComponent' | ||
componentOptions: | ||
middlewares: | ||
'Flownative.Prometheus:metricsExporter': | ||
'position': 'before routing' | ||
middleware: 'Flownative\Prometheus\Http\MetricsExporterMiddleware' | ||
|
||
## Path at which metrics are published for scraping | ||
telemetryPath: '/metrics' | ||
|
||
basicAuth: | ||
username: '' | ||
password: '' | ||
realm: 'Flownative Prometheus Plugin' | ||
Flownative: | ||
OpenIdConnect: | ||
Client: | ||
middleware: | ||
authenticationProviderName: 'Flownative.OpenIdConnect.Client:OidcProvider' | ||
cookie: | ||
name: 'flownative_oidc_jwt' | ||
secure: true | ||
sameSite: 'strict' |
Oops, something went wrong.