@@ -12,28 +12,16 @@ jobs:
1212 fail-fast : false
1313 matrix :
1414 # Test against different eXist-db versions
15- exist-version : [latest, release]
16- java-version : [11, 21]
17- exclude :
18- - exist-version : release
19- java-version : 21
20- - exist-version : latest
21- java-version : 11
15+ img-version : [latest]
16+ java-version : [11]
17+
2218
2319 steps :
2420 # Checkout code
2521 - uses : actions/checkout@v6
2622
27- # Install Test Dependencies
28- - name : Install Test Dependencies
29- run : |
30- sudo apt-get update
31- sudo apt-get install -y libxml2-utils
32-
33- # Sanity check
34- - name : Ensure all XML files are well-formed
35- run : |
36- find . -type f -name '*.xml' -print0 | xargs -0 xmllint -noout
23+ - name : Set up Docker Buildx
24+ uses : docker/setup-buildx-action@v3
3725
3826 # Setup Node.js
3927 - name : Setup Node.js
@@ -56,21 +44,17 @@ jobs:
5644 - name : Build Expath Package
5745 run : ant -Dapp.version=1.0.0-SNAPSHOT
5846
59- - name : Add expath dependencies
60- working-directory : build
61- run : |
62- wget https://exist-db.org/exist/apps/public-repo/public/expath-crypto-module-6.0.1.xar -O 000.xar
63- wget http://exist-db.org/exist/apps/public-repo/public/templating-1.1.0.xar -O 001.xar
64- wget https://exist-db.org/exist/apps/public-repo/public/tei-publisher-lib-2.10.1.xar -O 002.xar
65- wget https://exist-db.org/exist/apps/public-repo/public/functx-1.0.1.xar -O 003.xar
66- wget https://github.com/HistoryAtState/aws.xq/releases/latest/download/aws-xq.xar -O 004.xar
47+ # TODO(DP): cache image
48+ - name : Pull Dev Image
49+ run : docker pull joewiz/hsg-project:${{ matrix.img-version }}
6750
6851 # Install and start eXist-db
6952 - name : Start exist-ci containers
53+ timeout-minutes : 20
7054 run : |
7155 docker run -dit -p 8080:8080 -v ${{ github.workspace }}/build:/exist/autodeploy \
7256 --name exist --rm --health-interval=2s --health-start-period=4s \
73- duncdrum/existdb :${{ matrix.exist -version }}
57+ joewiz/hsg-project :${{ matrix.img -version }}
7458
7559 - name : Wait for eXist-db to start
7660 timeout-minutes : 10
@@ -85,22 +69,21 @@ jobs:
8569 with :
8670 install : false
8771 browser : firefox
88- spec : ' tests/cypress/e2e/**/prod_*.cy.js'
8972
9073
9174 # Upload test results
9275 - name : Upload Cypress screenshots
9376 uses : actions/upload-artifact@v4
9477 if : failure()
9578 with :
96- name : cypress-screenshots-${{ matrix.exist -version }}-${{ matrix.java-version }}
79+ name : cypress-screenshots-${{ matrix.img -version }}-${{ matrix.java-version }}
9780 path : tests/cypress/screenshots
9881 retention-days : 7
9982
10083 - name : Upload Cypress videos
10184 uses : actions/upload-artifact@v4
10285 if : always()
10386 with :
104- name : cypress-videos-${{ matrix.exist -version }}-${{ matrix.java-version }}
87+ name : cypress-videos-${{ matrix.img -version }}-${{ matrix.java-version }}
10588 path : tests/cypress/videos
10689 retention-days : 7
0 commit comments