Skip to content

DNM: Add WikibaseQualityConstraints #1179

DNM: Add WikibaseQualityConstraints

DNM: Add WikibaseQualityConstraints #1179

name: MediaWiki Verify
on:
push:
branches:
- 'main'
pull_request:
jobs:
checks:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3.3.0
- name: build docker
run: docker compose up -d
- name: Wait for server to accept connections
uses: nick-invision/retry@v2
with:
timeout_minutes: 5
max_attempts: 100
retry_wait_seconds: 5
warning_on_retry: false
command: docker compose logs mysql | grep "ready for connections" | wc -l | grep 2
- run: curl -L -s -N "http://site1.localhost:8001/wiki/Main_Page" | grep -q "Main Page"
- run: curl -L -s -N "http://site1.localhost:8001/w/api.php" | grep -q "Main module"
- run: curl -L -s -N "http://site1.localhost:8001/w/load.php" | grep -q "no modules were requested"
- run: curl -L -s -N "http://site1.localhost:8001/w/rest.php" | grep -q "did not match any known handler"
- run: curl -L -s -N "http://site2.localhost:8001/wiki/Main_Page" | grep -q "Main Page"
- run: curl -L -s -N "http://site2.localhost:8001/w/api.php" | grep -q "Main module"
- run: curl -L -s -N "http://site2.localhost:8001/w/load.php" | grep -q "no modules were requested"
- run: curl -L -s -N "http://site2.localhost:8001/w/rest.php" | grep -q "did not match any known handler"
- run: curl -L -s -N "http://notfound.localhost:8001/wiki/Main_Page" | grep -q "It may never have existed"
- run: curl -L -s -N "http://failwith500.localhost:8001/wiki/Main_Page" | grep -q "server error in the platform API"
- run: curl -L -s -N "http://broken.localhost:8001/wiki/Main_Page" | grep -q "server error in the platform API"