mirror of
https://github.com/bitcoin/bips.git
synced 2024-11-19 01:40:05 +01:00
52fdb00b6d
typos is a powerful source code spell checker. Adds a CI job that runs on every PR and push to master (but can also be run manually with workflow_dispatch) that checks for typos. Adds a config file .typos.toml that deals with false positives and only checks for top-level/one-level .mediawiki and .md files.
32 lines
830 B
YAML
32 lines
830 B
YAML
name: GitHub Actions Check
|
|
run-name: ${{ github.actor }} Checks 🚀
|
|
on: [push, pull_request]
|
|
jobs:
|
|
Link-Format-Checks:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- run: scripts/link-format-chk.sh
|
|
Build-Table-Checks:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- run: scripts/buildtable.pl >/tmp/table.mediawiki || exit 1
|
|
Diff-Checks:
|
|
name: "Diff Checks (fails until number assignment)"
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
fetch-depth: 2
|
|
- run: scripts/diffcheck.sh
|
|
Typo-Checks:
|
|
name: "Typo Checks"
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout Actions Repository
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Check spelling
|
|
uses: crate-ci/typos@master
|