Updated to the latest version of CK3MBP
#1625
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: Validation | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
workflow_dispatch: | |
jobs: | |
data: | |
name: Data | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install xmlstarlet | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y xmlstarlet | |
- name: Validate the data | |
run: | | |
VALIDATE_DATA_OUTPUT="$(bash scripts/validate-data.sh | tr '\0' '\n')" | |
if [ -n "${VALIDATE_DATA_OUTPUT}" ]; then | |
echo "${VALIDATE_DATA_OUTPUT}" | |
exit 1 | |
fi | |
scripts: | |
name: Scripts | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Shellcheck | |
run: shopt -s globstar nullglob; shellcheck **/*.sh --severity error |