Skip to content

F

F #40

Workflow file for this run

name: CS
on:
# Run on all pushes and on all pull requests.
push:
pull_request:
# Allow manually triggering the workflow.
workflow_dispatch:
# Do NOT cancels all previous workflow runs for the same branch that have not yet completed.
concurrency:
# The concurrency group contains the workflow name and the branch name.
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: false
jobs:
markdownlint:
name: 'Lint Markdown'
uses: PHPCSStandards/.github/.github/workflows/reusable-markdownlint.yml@main
yamllint:
name: 'Lint Yaml'
uses: PHPCSStandards/.github/.github/workflows/reusable-yamllint.yml@main
with:
strict: true
linkcheck:
name: "Check links"
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Restore lychee cache
uses: actions/cache@v4
with:
path: .lycheecache
key: cache-lychee-${{ github.sha }}
restore-keys: cache-lychee-
- name: Link Checker
uses: lycheeverse/lychee-action@v2
with:
args: --cache --max-cache-age 1w --verbose './**/*.md'
format: markdown
token: ${{ secrets.GITHUB_TOKEN }}
fail: true
spellcheck-1:
name: Spellcheck-1
# Config file: .cspell.yml
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install markdown-spellcheck
run: npm install -g cspell
- name: Spellcheck
run: cspell --show-suggestions --show-context --color "**/*.md"
spellcheck-2:
name: Spellcheck-2
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Spellcheck
uses: streetsidesoftware/cspell-action@v7
with:
# Define glob patterns to filter the files to be checked. Use a new line between patterns to define multiple patterns.
files: '**/*.md'
root: '.'
suggestions: true
# Notification level for annotations. Allowed values are: warning, error, none
inline: warning
treat_flagged_words_as_errors: true
# Determines if the action should be failed if any spelling issues are found.
strict: true
# Limit the files checked to the ones in the pull request or push.
incremental_files_only: false
# Path to `cspell.json`
#config: '.'
spellcheck-3:
name: Spellcheck-3
# Config file: .spellcheck.yml
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Spellcheck
uses: rojopolis/spellcheck-github-actions@v0
spellcheck-4:
name: Spellcheck-4
runs-on: ubuntu-latest
steps:
- name: Spellcheck
uses: gevhaz/[email protected]
with:
language: en_GB
dictionary: ./.phpcs.txt
spellcheck-5:
name: Spellcheck-5
# Config file: _typos.toml
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: "Search for misspellings"
uses: "crate-ci/typos@v1"