mobile app redesign - broken project #1220
Workflow file for this run
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: Checks | |
# Triggered when code is pushed to any branch in a repository | |
on: push | |
jobs: | |
spellcheck: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
# need Node 16 or less to get rid of ERR_OSSL_EVP_UNSUPPORTED | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
- name: Generate dist | |
run: | | |
yarn install | |
yarn build | |
- name: "Check dist dir consistency" | |
uses: andstor/file-existence-action@v1 | |
with: | |
files: "dist/docs/index.html" | |
allow_failure: true # Makes the Action fail on missing files | |
- uses: rojopolis/[email protected] | |
name: Spellcheck | |
with: | |
config_path: scripts/spellcheck.yaml | |
broken_links: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
# need Node 16 or less to get rid of ERR_OSSL_EVP_UNSUPPORTED | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
- name: Generate dist | |
run: | | |
yarn install | |
yarn build | |
cat > ./dist/index.html << EOF | |
<!DOCTYPE html> | |
<html> | |
<head> | |
Local deployment on https://test.merginmaps.com/docs | |
</head> | |
<body> | |
<a href="https://test.merginmaps.com/docs">https://test.merginmaps.com/docs</a> | |
</body> | |
</html> | |
EOF | |
- name: Set variables | |
run: | | |
EXCLUDE_LIST=$(cat scripts/broken-link-exceptions.txt) | |
echo "EXCLUDE_LIST=$EXCLUDE_LIST" >> $GITHUB_ENV | |
- name: Check broken links | |
uses: ruzickap/action-my-broken-link-checker@v2 | |
with: | |
url: https://test.merginmaps.com | |
cmd_params: --buffer-size=8192 --max-connections=10 --color=always --skip-tls-verification --timeout=60 ${{ env.EXCLUDE_LIST }} | |
pages_path: ./dist/ | |
debug: true | |
markdown_checks: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Find markdown style errors | |
run: | | |
./scripts/markdown_style.bash | |
- name: Find unreferenced images | |
run: | | |
./scripts/unreferenced_images.bash | |
redirects_check: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: '3.10' | |
- name: Check redirects | |
run: | | |
git diff --name-status $(git describe --tags $(git rev-list --tags --max-count=1)) > git-output.txt | |
python scripts/check-redirects/main.py |