-
Notifications
You must be signed in to change notification settings - Fork 7
36 lines (34 loc) · 1.87 KB
/
http-tests.yml
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
29
30
31
32
33
34
35
36
name: HTTP-tests
on: push
jobs:
http-tests:
name: Build Docker image and run HTTP test suite against it
runs-on: ubuntu-latest
steps:
- name: Install Linux packages
run: sudo apt-get update && sudo apt-get install -qq raptor2-utils
- name: Checkout code
uses: actions/checkout@v2
- name: Build Docker image
run: docker build -t atomgraph/processor .
- name: Run Docker containers
run: docker-compose up -d # run fuseki and processor containers in the background
working-directory: http-tests
- name: Wait for the servers to start...
run: |
while ! curl -w "%{http_code}\n" -s -o /dev/null http://localhost:8080 | grep "404" ; do sleep 1 ; done # wait for processor-ct to start
while ! curl -w "%{http_code}\n" -s -o /dev/null http://localhost:8081 | grep "404" ; do sleep 1 ; done # wait for processor-ct-write to start
while ! curl -w "%{http_code}\n" -s -o /dev/null http://localhost:8082 | grep "404" ; do sleep 1 ; done # wait for processor-ngt to start
while ! curl -w "%{http_code}\n" -s -o /dev/null http://localhost:8083 | grep "404" ; do sleep 1 ; done # wait for processor-ngt-write to start
while ! curl -w "%{http_code}\n" -s -o /dev/null http://localhost:8085 | grep "404" ; do sleep 1 ; done # wait for processor-custom to start
while ! curl -w "%{http_code}\n" -s -o /dev/null http://localhost:8086 | grep "404" ; do sleep 1 ; done # wait for processor-custom-write to start
- name: Run HTTP test scripts
run: ./run.sh
shell: bash
working-directory: http-tests
- name: Stop Docker containers
run: docker-compose down # shutdown fuseki and processor
working-directory: http-tests
- name: Remove Docker containers
run: docker-compose rm -f
working-directory: http-tests