-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Upgrade symfony to 5.4 & separate EntityMapper (#174)
* Update to Symfony 5.4 * Switch to lexik_jwt_bundle * Milliner needs islandora-fedora-entity-mapper but not Crayfish-Commons * Fix tests * Update dependencies to tagged versions * Remove unused imports * Github actions workflow * Update defaults to include the `user_identify_field` configuration parameter * Add upgrade docs * Update nodejs actions for workflows
- Loading branch information
Showing
90 changed files
with
1,052 additions
and
874 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
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 @@ | ||
# This is a basic workflow to help you get started with Actions | ||
|
||
name: CI - 4.x | ||
|
||
# Controls when the action will run. | ||
on: | ||
# Triggers the workflow on push or pull request events but only for the 7.x branch | ||
push: | ||
branches: [ 4.x ] | ||
pull_request: | ||
branches: [ 4.x ] | ||
|
||
# Allows you to run this workflow manually from the Actions tab | ||
workflow_dispatch: | ||
|
||
# A workflow run is made up of one or more jobs that can run sequentially or in parallel | ||
jobs: | ||
# This workflow contains a single job called "build" | ||
build: | ||
# The type of runner that the job will run on | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
php-versions: ["7.4", "8.0", "8.1"] | ||
|
||
name: PHP ${{ matrix.php-versions }} | ||
|
||
# Steps represent a sequence of tasks that will be executed as part of the job | ||
steps: | ||
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
with: | ||
path: build_dir | ||
|
||
- name: Checkout islandora_ci | ||
uses: actions/checkout@v3 | ||
with: | ||
repository: islandora/islandora_ci | ||
ref: github-actions | ||
path: islandora_ci | ||
|
||
- name: Setup PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: ${{ matrix.php-versions }} | ||
tools: composer:v2 | ||
|
||
- name: Set environment variables | ||
run: | | ||
echo "SCRIPT_DIR=$GITHUB_WORKSPACE/islandora_ci" >> $GITHUB_ENV | ||
- name: Get composer cache directory | ||
id: composer-cache | ||
run: | | ||
cd $GITHUB_WORKSPACE/build_dir/Milliner | ||
echo "composer-cache-dir=$(composer config cache-files-dir)" >> $GITHUB_ENV | ||
- name: Cache Composer dependencies | ||
uses: actions/cache@v3 | ||
with: | ||
path: ${{ env.composer-cache-dir }} | ||
key: ${{ runner.os }}-composer-${{ matrix.php-version }}-${{ hashFiles('**/composer.lock') }} | ||
restore-keys: ${{ runner.os }}-composer-${{ matrix.php-version }} | ||
|
||
- name: composer install | ||
run: | | ||
cd $GITHUB_WORKSPACE/build_dir | ||
for D in */; do (cd $D; composer install) done | ||
- name: line endings | ||
run: $SCRIPT_DIR/line_endings.sh $GITHUB_WORKSPACE | ||
|
||
- name: test scripts | ||
run: | | ||
cd $GITHUB_WORKSPACE/build_dir | ||
.scripts/tester | ||
- name: codecov | ||
uses: codecov/codecov-action@v3 | ||
|
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
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 was deleted.
Oops, something went wrong.
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,3 +1,3 @@ | ||
crayfish_commons: | ||
fedora_base_uri: 'http://localhost:8080/fcrepo/rest' | ||
#syn_config: '/path/to/syn-settings.xml' | ||
apix_middleware_enabled: false |
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,17 +1,24 @@ | ||
# see https://symfony.com/doc/current/reference/configuration/framework.html | ||
# see https://symfony.com/doc/5.4/reference/configuration/framework.html | ||
framework: | ||
secret: '%env(APP_SECRET)%' | ||
#csrf_protection: true | ||
#http_method_override: true | ||
http_method_override: false | ||
|
||
# Enables session support. Note that the session will ONLY be started if you read or write from it. | ||
# Remove or comment this section to explicitly disable session support. | ||
session: | ||
handler_id: null | ||
cookie_secure: auto | ||
cookie_samesite: lax | ||
storage_factory_id: session.storage.factory.native | ||
|
||
#esi: true | ||
#fragments: true | ||
php_errors: | ||
log: true | ||
|
||
when@test: | ||
framework: | ||
test: true | ||
session: | ||
storage_factory_id: session.storage.factory.mock_file |
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 @@ | ||
lexik_jwt_authentication: | ||
# Need secret key to generate a token, this is not necessary for normal usage as the key is generated by Drupal. | ||
secret_key: '%env(resolve:JWT_SECRET_KEY)%' | ||
# This is required if you have set a passphrase on the secret key, this is generally not needed. | ||
pass_phrase: '%env(resolve:JWT_PASSPHRASE)%' | ||
# This is the public key from the pair generated by Drupal and is required to validate the JWTs | ||
public_key: '%env(resolve:JWT_PUBLIC_KEY)%' | ||
# By default lexik_jwt looks for the username key in the payload, we use sub | ||
user_identity_field: sub |
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,9 +1,5 @@ | ||
<?php | ||
|
||
if (file_exists(dirname(__DIR__).'/var/cache/prod/srcApp_KernelProdContainer.preload.php')) { | ||
require dirname(__DIR__).'/var/cache/prod/srcApp_KernelProdContainer.preload.php'; | ||
} | ||
|
||
if (file_exists(dirname(__DIR__).'/var/cache/prod/App_KernelProdContainer.preload.php')) { | ||
require dirname(__DIR__).'/var/cache/prod/App_KernelProdContainer.preload.php'; | ||
} |
Oops, something went wrong.