-
-
Notifications
You must be signed in to change notification settings - Fork 7
28 lines (26 loc) · 1000 Bytes
/
Copy pathtest-no-rest.yml
File metadata and controls
28 lines (26 loc) · 1000 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
name: Test - No REST
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- run: docker pull existdb/existdb:release
- run: |
docker create --rm --name exist \
--publish 8080:8080 --publish 8443:8443 \
--volume ./empty:/exist/autodeploy:ro \
existdb/existdb:release
- uses: actions/checkout@v6
- name: Modify web.xml in docker instance
run: docker cp ./spec/fixtures/web-no-rest.xml exist:exist/etc/webapp/WEB-INF/web.xml
- run: docker start exist
- uses: actions/setup-node@v6
with:
node-version: 'lts/*'
cache: 'npm'
- run: npm ci --omit=optional
- run: npm link
- name: Wait for container to be healthy
run: timeout 60s sh -c 'until docker ps | grep exist | grep -q healthy; do echo "Not ready yet."; sleep 2; done; echo "$(docker ps | grep exist)"'
- name: Run "norest" testsuite
run: npm run test:norest