Skip to content
This repository was archived by the owner on Jan 11, 2024. It is now read-only.

Commit 29d0b44

Browse files
authored
Enabling spellcheck GitHub Action (#9)
* Added basic setup and configuration. * Added spell-check job to job configurations for ci and cd
1 parent ada12aa commit 29d0b44

File tree

3 files changed

+73
-13
lines changed

3 files changed

+73
-13
lines changed
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
CocoaPods
2+
Codable
3+
CodingKey
4+
DocC
5+
DocumentationExtension
6+
DynamicCodableKit
7+
Github
8+
JSON
9+
SPM
10+
Submodule
11+
XCFramework
12+
Xcode
13+
ae
14+
automagically
15+
ba
16+
bab
17+
casted
18+
ceb
19+
eb
20+
faq
21+
fc
22+
fd
23+
fe
24+
gmail
25+
html
26+
https
27+
lossy
28+
macOS
29+
mahunt
30+
mergeBehavior
31+
podspec
32+
pre
33+
prebuilt
34+
sexualized
35+
socio
36+
soumya
37+
submodule
38+
tvOS
39+
vscode
40+
watchOS
41+
www

.github/config/spellcheck.yaml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
matrix:
2+
- name: Markdown
3+
aspell:
4+
lang: en
5+
dictionary:
6+
wordlists:
7+
- .github/config/spellcheck-wordlist.txt
8+
encoding: utf-8
9+
pipeline:
10+
- pyspelling.filters.markdown:
11+
markdown_extensions:
12+
- pymdownx.superfences:
13+
- pyspelling.filters.html:
14+
comments: false
15+
ignores:
16+
- code
17+
- pre
18+
sources:
19+
- '**/*.md'
20+
default_encoding: utf-8

.github/workflows/main.yml

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -32,17 +32,16 @@ jobs:
3232
# contents: read
3333
# security-events: write
3434

35-
# spell-check:
36-
# name: Run spell check
37-
# runs-on: ubuntu-latest
38-
# steps:
39-
# - name: Checkout repository
40-
# uses: actions/checkout@v3
41-
42-
# - name: Spellcheck Action
43-
# uses: rojopolis/[email protected]
44-
# with:
45-
# config_path: .github/config/spellcheck.yml
35+
spell-check:
36+
name: Run spell check
37+
runs-on: ubuntu-latest
38+
steps:
39+
- name: Checkout repository
40+
uses: actions/checkout@v3
41+
- name: Spellcheck Action
42+
uses: rojopolis/[email protected]
43+
with:
44+
config_path: .github/config/spellcheck.yml
4645

4746
swift-package-test:
4847
name: Swift Package
@@ -90,7 +89,7 @@ jobs:
9089
ci:
9190
name: CI
9291
if: github.event_name == 'push'
93-
needs: [swift-package-test, xcode-test, cocoapods-test]
92+
needs: [swift-package-test, xcode-test, cocoapods-test, spell-check]
9493
# needs: [analyze, swift-package-test, xcode-test, cocoapods-test]
9594
uses: SwiftyLab/ci/.github/workflows/ci.yml@main
9695

@@ -106,7 +105,7 @@ jobs:
106105
needs.cocoapods-test.result == 'success' &&
107106
(needs.ci.result == 'success' || needs.ci.result == 'skipped'))
108107
# (needs.analyze.result == 'success' || needs.analyze.result == 'skipped')
109-
needs: [ci, swift-package-test, xcode-test, cocoapods-test]
108+
needs: [ci, swift-package-test, xcode-test, cocoapods-test, spell-check]
110109
# needs: [ci, analyze, swift-package-test, xcode-test, cocoapods-test]
111110
uses: SwiftyLab/ci/.github/workflows/cd.yml@main
112111
with:

0 commit comments

Comments
 (0)