|
24 | 24 | with:
|
25 | 25 | strict: true
|
26 | 26 |
|
27 |
| - spellcheck: |
28 |
| - name: Spellcheck |
29 |
| - |
30 |
| - runs-on: ubuntu-latest |
31 |
| - |
32 |
| - steps: |
33 |
| - - name: Checkout code |
34 |
| - uses: actions/checkout@v4 |
35 |
| - |
36 |
| - - name: Install markdown-spellcheck |
37 |
| - run: npm install -g cspell |
38 |
| - |
39 |
| - - name: Spellcheck |
40 |
| - run: cspell --show-suggestions --show-context "**/*.md" |
41 |
| - |
42 | 27 | linkcheck:
|
43 | 28 | name: "Check links"
|
44 | 29 | runs-on: ubuntu-latest
|
|
61 | 46 | format: markdown
|
62 | 47 | token: ${{ secrets.GITHUB_TOKEN }}
|
63 | 48 | fail: true
|
| 49 | + |
| 50 | + spellcheck-1: |
| 51 | + name: Spellcheck-1 |
| 52 | + # Config file: .cspell.yml |
| 53 | + |
| 54 | + runs-on: ubuntu-latest |
| 55 | + |
| 56 | + steps: |
| 57 | + - name: Checkout code |
| 58 | + uses: actions/checkout@v4 |
| 59 | + |
| 60 | + - name: Install markdown-spellcheck |
| 61 | + run: npm install -g cspell |
| 62 | + |
| 63 | + - name: Spellcheck |
| 64 | + run: cspell --show-suggestions --show-context "**/*.md" |
| 65 | + |
| 66 | + spellcheck-2: |
| 67 | + name: Spellcheck-2 |
| 68 | + |
| 69 | + runs-on: ubuntu-latest |
| 70 | + |
| 71 | + steps: |
| 72 | + - name: Checkout code |
| 73 | + uses: actions/checkout@v4 |
| 74 | + |
| 75 | + - name: Spellcheck |
| 76 | + uses: streetsidesoftware/cspell-action@v7 |
| 77 | + with: |
| 78 | + # Define glob patterns to filter the files to be checked. Use a new line between patterns to define multiple patterns. |
| 79 | + files: '**/*.md' |
| 80 | + root: '.' |
| 81 | + suggestions: true |
| 82 | + # Notification level for annotations. Allowed values are: warning, error, none |
| 83 | + inline: warning |
| 84 | + treat_flagged_words_as_errors: true |
| 85 | + # Determines if the action should be failed if any spelling issues are found. |
| 86 | + strict: true |
| 87 | + # Limit the files checked to the ones in the pull request or push. |
| 88 | + incremental_files_only: false |
| 89 | + # Path to `cspell.json` |
| 90 | + #config: '.' |
| 91 | + |
| 92 | + spellcheck-3: |
| 93 | + name: Spellcheck-3 |
| 94 | + # Config file: .spellcheck.yml |
| 95 | + |
| 96 | + runs-on: ubuntu-latest |
| 97 | + |
| 98 | + steps: |
| 99 | + - name: Checkout code |
| 100 | + uses: actions/checkout@v4 |
| 101 | + |
| 102 | + - name: Spellcheck |
| 103 | + uses: rojopolis/spellcheck-github-actions@v0 |
| 104 | + |
| 105 | + spellcheck-4: |
| 106 | + name: Spellcheck-4 |
| 107 | + # Config file: .spellcheck.yml |
| 108 | + |
| 109 | + runs-on: ubuntu-latest |
| 110 | + |
| 111 | + steps: |
| 112 | + - name: Checkout code |
| 113 | + uses: actions/checkout@v4 |
| 114 | + |
| 115 | + - name: Spellcheck |
| 116 | + |
| 117 | + with: |
| 118 | + language: en_GB |
| 119 | + dictionary: ./.phpcs.dict |
| 120 | + |
0 commit comments