Skip to content

Commit 63f81f7

Browse files
authored
Merge pull request #5 from digitalutsc/feat/update-composer-and-add-reusable-workflow
feat: update composer file and add reusable workflow
2 parents d988ce5 + 13b6777 commit 63f81f7

2 files changed

Lines changed: 9 additions & 31 deletions

File tree

.github/workflows/ci.yml

Lines changed: 5 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -8,33 +8,8 @@ on:
88
workflow_dispatch:
99

1010
jobs:
11-
build:
12-
runs-on: ubuntu-latest
13-
continue-on-error: false
14-
strategy:
15-
fail-fast: false
16-
matrix:
17-
php-versions: ["8.3", "8.4"]
18-
drupal-version: ["10.6", "11.3"]
19-
20-
name: PHP ${{ matrix.php-versions }} | Drupal ${{ matrix.drupal-version }}
21-
22-
steps:
23-
- name: Checkout code
24-
uses: actions/checkout@v5
25-
26-
- name: Create docker network
27-
run: docker network create ci-default
28-
29-
- name: PHPUnit tests
30-
run: |
31-
docker run \
32-
--rm \
33-
--name drupal \
34-
--hostname drupal \
35-
--volume $(pwd):/var/www/drupal/web/modules/contrib/$ENABLE_MODULES:ro \
36-
--env ENABLE_MODULES \
37-
--network ci-default \
38-
ghcr.io/islandora/ci:${{ matrix.drupal-version }}-php${{ matrix.php-versions }}
39-
env:
40-
ENABLE_MODULES: islandora_iiif_hocr_extend
11+
islandora-module-ci:
12+
uses: digitalutsc/reusable_workflows/.github/workflows/islandora-module-ci.yml@main
13+
with:
14+
module_name: islandora_iiif_hocr_extend
15+
install_chromedriver: false

composer.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,8 @@
22
"name": "islandora_lite/islandora_iiif_hocr_extend",
33
"type": "drupal-module",
44
"description": "Extends Islandora IIIF HOCR module to extract and index text version of hocr xml data.",
5-
"keywords": ["Drupal"]
5+
"keywords": ["Drupal"],
6+
"require": {
7+
"drupal/core": "^10 || ^11"
8+
}
69
}

0 commit comments

Comments
 (0)