Skip to content

Commit ffef00a

Browse files
authored
Merge pull request #4 from Aryan-R-Patel/ci/setup-testing-workflow
feat: add ci testing workflow
2 parents 2b79c9e + fd4e6e3 commit ffef00a

1 file changed

Lines changed: 40 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
workflow_dispatch:
9+
10+
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@v4
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

0 commit comments

Comments
 (0)