-
Notifications
You must be signed in to change notification settings - Fork 822
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream/master' into salt-pond
- Loading branch information
Showing
11 changed files
with
193 additions
and
220 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
name: CI | ||
on: | ||
- push | ||
- pull_request | ||
jobs: | ||
syntax: | ||
runs-on: ubuntu-18.04 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-python@v1 | ||
with: | ||
python-version: 3.7 | ||
- name: Set up Python | ||
run: | | ||
python -m pip install pyyaml colormath | ||
- name: Set up xmllint | ||
run: sudo apt-get install -qq --no-install-recommends libxml2-utils | ||
- name: Set up shell | ||
run: set -o pipefail | ||
- name: Validate YAML files | ||
run: | | ||
find . \( -type f -name '*.yaml' -o -name '*.yml' -o -name '*.mml' \) \ | ||
-exec python -c "from yaml import safe_load; safe_load(file('{}'))" \; | ||
- name: Validate SVGs for valid XML | ||
run: find symbols/ -name '*.svg' | xargs xmllint --noout | ||
- name: Check indexes are up to date | ||
run: diff -qu <(scripts/indexes.py) indexes.sql | ||
- name: Check road colours are up to date | ||
run: diff -qu <(scripts/generate_road_colours.py) style/road-colors-generated.mss | ||
- name: Check for unsupported class usage | ||
run: '! grep "class:" project.mml > /dev/null' |
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
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
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
Oops, something went wrong.