Skip to content

Commit

Permalink
externalise broken wikilink checker
Browse files Browse the repository at this point in the history
  • Loading branch information
Walavouchey committed Jun 4, 2022
1 parent 687d746 commit 4c4b601
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 267 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
- name: inspect binary file sizes
shell: bash
run: bash scripts/ci/inspect_binary_file_sizes.sh ${{ github.sha }} ${{ github.sha }}
- name: setup node
- name: set up node
uses: actions/setup-node@v3
with:
node-version: '16'
Expand All @@ -53,17 +53,17 @@ jobs:
- name: run remark on changed files
run: bash scripts/ci/run_remark.sh ${{ github.sha }} ${{ github.sha }}

- name: setup Python
- name: set up Python
uses: actions/setup-python@v2
with:
python-version: "3.x"

- name: setup and run yamllint on .yaml and .md files
- name: set up and run yamllint on .yaml and .md files
run: |
pip install -r scripts/requirements.txt
python scripts/ci/run_yamllint.py --config .yamllint.yaml
- name: find broken wikilinks
- name: set up and run broken wikilink checker
shell: bash
env:
PULL_REQUEST_TAG: 'SKIP_WIKILINK_CHECK'
Expand All @@ -73,8 +73,10 @@ jobs:
exit 0
fi
pip install osu-wiki-tools
ARTICLES=$( git diff --diff-filter=d --name-only ${{ github.sha }}^ ${{ github.sha }} "wiki/**/*.md" "news/*.md" )
python scripts/ci/find_broken_wikilinks.py --target $ARTICLES
find-broken-wikilinks --target $ARTICLES
- name: check if translations are marked as outdated
shell: bash
Expand Down
2 changes: 1 addition & 1 deletion run-ci.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ printf -- "\n--- Run yamllint ---\n\n"
"$python" scripts/ci/run_yamllint.py --config .yamllint.yaml

printf -- "\n--- Broken wikilink check ---\n\n"
"$python" scripts/ci/find_broken_wikilinks.py --target ${ARTICLES}
find-broken-wikilinks --target ${ARTICLES}

printf -- "\n--- Outdated tag check ---\n\n"
bash scripts/ci/check_outdated_tags.sh ${FIRST_COMMIT_HASH}
261 changes: 0 additions & 261 deletions scripts/ci/find_broken_wikilinks.py

This file was deleted.

1 change: 1 addition & 0 deletions scripts/requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
yamllint==1.26.3
osu-wiki-tools==0.0.2

0 comments on commit 4c4b601

Please sign in to comment.