Skip to content

form widgets

form widgets #1566

Workflow file for this run

name: Checks
# Triggered when code is pushed to any branch in a repository
on:
push:
branches:
- '**'
jobs:
spellcheck:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 20
- 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/spellcheck-github-actions@0.18.0
name: Spellcheck
with:
config_path: scripts/spellcheck.yaml
broken_links:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 20
cache: 'yarn'
- 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: Do not check Github links on dev branches
if: ${{ github.ref_name != 'main' }}
run: |
# Do not check GH on every commit, their rate limits are too small
EXCLUDE_LIST="$EXCLUDE_LIST --exclude=https://github.com/*"
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