Merge branch 'develop' of github.com:AtomGraph/Processor into develop #198
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
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 |