CI: Use distributed network for service uptime check

This commit is contained in:
derrod
2023-12-18 23:40:15 +01:00
committed by Rodney
parent 92ea7cb145
commit 8c3dbd9b51
4 changed files with 90 additions and 87 deletions
+10 -2
View File
@@ -4,6 +4,12 @@ inputs:
repositorySecret:
description: GitHub token for API access
required: true
checkApiSecret:
description: Token for server check API
required: false
checkApiServers:
description: Servers for the check API
required: false
runSchemaChecks:
description: Enable schema checking
required: false
@@ -46,8 +52,8 @@ runs:
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
echo "/home/linuxbrew/.linuxbrew/bin:/home/linuxbrew/.linuxbrew/sbin" >> $GITHUB_PATH
fi
brew install --overwrite --quiet python3
python3 -m pip install jsonschema json_source_map requests
brew install --overwrite --quiet python@3.11
python3 -m pip install jsonschema json_source_map requests aiohttp
echo ::endgroup::
- name: Validate Services File JSON Schema 🕵️
@@ -91,6 +97,8 @@ runs:
GITHUB_TOKEN: ${{ inputs.repositorySecret }}
WORKFLOW_RUN_ID: ${{ github.run_id }}
REPOSITORY: ${{ github.repository }}
API_KEY: ${{ inputs.checkApiSecret }}
API_SERVERS: ${{ inputs.checkApiServers }}
run: |
: Check for defunct services 📉
python3 -u .github/scripts/utils.py/check-services.py