-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: add facility to test with REST disabled
- Loading branch information
Showing
5 changed files
with
520 additions
and
10 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,38 @@ | ||
name: Test - No REST | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
# pull image | ||
- run: docker pull existdb/existdb:release | ||
# create docker container | ||
# --volume $(pwd)/empty:/exist/autodeploy:ro | ||
- name: Start eXist-db Container | ||
run: docker create existdb/existdb:release --rm --name exist --publish 8080:8080 --publish 8443:8443 | ||
# - name: Wait for eXist-db Startup | ||
# run: timeout 90 sh -c 'until nc -z $0 $1; do sleep 3; done' localhost 8080 | ||
# get web.xml (use prepared web.xml instead) | ||
# - run: docker cp exist:exist/etc/webapp/WEB-INF/web.xml ./web.xml | ||
# modify web.xml | ||
# - run: cat web.xml | \ | ||
# tr '\n' '\r' | \ | ||
# sed -E 's/(<param-name>hidden<\/param-name>\r[[:space:]]+<param-value>)false(<\/param-value>)/\1true\2/' | \ | ||
# tr '\r' '\n' > modified-web.xml | ||
# upload modified web.xml | ||
- run: docker cp ./spec/fixtures/web-no-rest.xml exist:exist/etc/webapp/WEB-INF/web.xml | ||
# restart eXist-db Container | ||
- run: docker start exist | ||
- name: Wait for eXist-db Startup | ||
run: timeout 90 sh -c 'until nc -z $0 $1; do sleep 3; done' localhost 8080 | ||
- name: Use Node.js 20 | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 20 | ||
- run: npm ci --no-optional | ||
- run: npm link | ||
- run: npm run test:norest | ||
|
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.