-
Notifications
You must be signed in to change notification settings - Fork 26
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 #77 from adam-vessey/fix/config-enforcement
Sunsetting: Remove config enforcement, and post-update hook to do so for existing sites
- Loading branch information
Showing
26 changed files
with
380 additions
and
71 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,121 @@ | ||
# This is a basic workflow to help you get started with Actions | ||
|
||
name: CI | ||
|
||
# Controls when the action will run. | ||
on: | ||
# Triggers the workflow on push or pull request events but only for the target branch | ||
push: | ||
branches: [ 3.x ] | ||
pull_request: | ||
branches: [ 3.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: | ||
fail-fast: false | ||
matrix: | ||
php-versions: ["7.4", "8.0", "8.1"] | ||
drupal-version: ["9.3.x", "9.4.x", "9.5.x-dev"] | ||
mysql: ["8.0"] | ||
include: | ||
- allowed_failure: "false" | ||
- php-versions: "8.1" | ||
allowed_failure: "true" | ||
|
||
name: PHP ${{ matrix.php-versions }} | drupal ${{ matrix.drupal-version }} | mysql ${{ matrix.mysql }} | ||
services: | ||
mysql: | ||
image: mysql:${{ matrix.mysql }} | ||
env: | ||
MYSQL_ALLOW_EMPTY_PASSWORD: yes | ||
MYSQL_DATABASE: drupal | ||
ports: | ||
- 3306:3306 | ||
activemq: | ||
image: webcenter/activemq:5.14.3 | ||
ports: | ||
- 8161:8161 | ||
- 61616:61616 | ||
- 61613:61613 | ||
|
||
# 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@v2 | ||
with: | ||
path: build_dir | ||
|
||
- name: Checkout islandora_ci | ||
uses: actions/checkout@v2 | ||
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: Setup Mysql client | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get remove -y mysql-client mysql-common | ||
sudo apt-get install -y mysql-client | ||
- name: Update Packages | ||
run: | | ||
sudo apt-get update | ||
- name: Set environment variables | ||
run: | | ||
echo "DRUPAL_VERSION=${{ matrix.drupal-version }}" >> $GITHUB_ENV | ||
echo "SCRIPT_DIR=$GITHUB_WORKSPACE/islandora_ci" >> $GITHUB_ENV | ||
echo "DRUPAL_DIR=/opt/drupal" >> $GITHUB_ENV | ||
echo "PHPUNIT_FILE=$GITHUB_WORKSPACE/build_dir/phpunit.xml" >> $GITHUB_ENV | ||
- name: Cache Composer dependencies | ||
uses: actions/cache@v2 | ||
with: | ||
path: /tmp/composer-cache | ||
key: ${{ runner.os }}-${{ hashFiles('**/composer.lock') }} | ||
|
||
- name: Setup Drupal | ||
run: | | ||
mkdir $DRUPAL_DIR | ||
$SCRIPT_DIR/travis_setup_drupal.sh | ||
cd $DRUPAL_DIR | ||
chmod -R u+w web/sites/default | ||
mkdir -p web/sites/simpletest/browser_output | ||
continue-on-error: ${{ matrix.allowed_failure }} | ||
|
||
- name: Setup composer paths | ||
run: | | ||
git -C "$GITHUB_WORKSPACE/build_dir" checkout -b github-testing | ||
cd $DRUPAL_DIR | ||
composer config repositories.local path "$GITHUB_WORKSPACE/build_dir" | ||
composer config minimum-stability dev | ||
composer require "islandora/islandora:^2" | ||
composer require "drupal/search_api_solr:^4.1" | ||
composer require "islandora/islandora_defaults:dev-github-testing as 3.x-dev" --prefer-source -W | ||
- name: Install modules | ||
run: | | ||
cd $DRUPAL_DIR/web | ||
drush --uri=127.0.0.1:8282 en -y islandora_audio islandora_breadcrumbs islandora_iiif islandora_image islandora_video islandora_text_extraction_defaults islandora_search | ||
drush --uri=127.0.0.1:8282 fim -y islandora_core_feature,islandora_text_extraction_defaults,islandora_defaults,islandora_search | ||
- name: Test scripts | ||
run: $SCRIPT_DIR/travis_scripts.sh | ||
|
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,6 @@ | ||
langcode: en | ||
status: true | ||
dependencies: | ||
enforced: | ||
module: | ||
- islandora_defaults | ||
module: | ||
- islandora | ||
name: binary | ||
|
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 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.