Skip to content

Commit

Permalink
GH Action - Check for QGIS Server status and git diff
Browse files Browse the repository at this point in the history
  • Loading branch information
Gustry committed Jan 13, 2025
1 parent 12ed8d8 commit a279fd7
Showing 1 changed file with 33 additions and 1 deletion.
34 changes: 33 additions & 1 deletion .github/workflows/e2e_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,11 +95,43 @@ jobs:
- name: Build and start docker images
run: ./run-docker up --build -d

- name: Wait docker images ready and install Lizmap
- name: Wait 30 secondes for docker images to be ready
run: |
sleep 30
- name: Install Lizmap
run: |
./lizmap-ctl install
- name: Wait and check about QGIS Server status
run: |
curl \
--user 'admin:admin' \
--retry 30 \
--retry-delay 5 \
-vN \
"http://localhost:8130/index.php/view/app/metadata" \
-o /tmp/test-qgis-server.json
# cat /tmp/test-qgis-server.json
qgis_info=$(cat /tmp/test-qgis-server.json | jq --raw-output '.qgis_server_info.error')
echo $qgis_info
if [[ "$qgis_info" != "null" ]]; then
echo "QGIS Server is not well configured"
echo "::warning QGIS Server was not up"
else
echo "JSON metadata OK about QGIS Server"
fi
- name: Check about updated files after a build (PHP or JS)
run: |
if [[ -z $(git status --porcelain -uno) ]]; then
echo "No updated files"
else
echo "Updated files"
git status
echo "::warning Git status is not clean"
fi
- name: Load SQL data
run: |
cd qgis-projects/tests
Expand Down

0 comments on commit a279fd7

Please sign in to comment.