fix package-lock and AppBar #37
Workflow file for this run
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: Basic test (build and run) | |
on: [ push, pull_request ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Build Docker image | |
run: docker build -t wis2box-webapp ./webapp/ | |
- name: Start Docker Compose services | |
run: docker-compose -f test/docker-compose.yml up -d | |
- name: Wait for service to start | |
run: sleep 30 | |
- name: Check status code | |
run: | | |
curl -s -o /dev/null -w "%{http_code}" http://localhost:8080/wis2box-webapp | |
status_code=$(curl -s -o /dev/null -w "%{http_code}" http://localhost:8080/wis2box-webapp) | |
if [[ $status_code -ne 200 ]]; then | |
echo "Request failed with status code:" | |
echo ${status_code} | |
exit 1 | |
fi | |
- name: failed tests 🚩 | |
if: ${{ failure() }} | |
run: | | |
echo "check docker logs" | |
docker-compose -f test/docker-compose.yml logs |