Skip to content

Commit 36f825c

Browse files
authored
add spellcheck action (#34)
1 parent cf64978 commit 36f825c

File tree

5 files changed

+43
-4
lines changed

5 files changed

+43
-4
lines changed

.github/config/cspell.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"version": "0.2",
3+
"language": "en",
4+
"words": [],
5+
"dictionaries": [
6+
"custom-words"
7+
],
8+
"dictionaryDefinitions": [
9+
{
10+
"name": "custom-words",
11+
"path": "./dictionary.txt",
12+
"addWords": true
13+
}
14+
]
15+
}

.github/config/dictionary.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
apeirora
2+
configurator
3+
flagd
4+
okhttp

.github/workflows/recommendation.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@ jobs:
1818
packages: write
1919
steps:
2020
- name: Install Task
21-
uses: arduino/setup-task@b91d5d2c96a56797b48ac1e0e89220bf64044611 # v2
21+
uses: arduino/setup-task@24c5e13bce349197642746563945fcdf9355e8f4 # v2.0.0
2222
with:
2323
version: 3.x
2424
repo-token: ${{ secrets.GITHUB_TOKEN }}
2525
- name: Checkout Code
26-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
26+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
2727
- name: Build `recommendation` image
2828
run: task recommendation:build
2929
- name: Login to GitHub Container Registry

.github/workflows/spellcheck.yaml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Spell Check
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches: [ main ]
7+
8+
jobs:
9+
spellcheck:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
13+
- name: Check spelling
14+
uses: streetsidesoftware/cspell-action@69543c3f9f14d4fcc6004c7bee03c4d366f11d64 # v7.0.1
15+
with:
16+
suggestions: true
17+
incremental_files_only: ${{ github.event_name == 'pull_request' }}
18+
# files: '**/*.{md,txt,js,ts,java,go,py,html,css,yaml,yml}'
19+
files: '**/*.{md,txt,html}'
20+
config: .github/config/cspell.json

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ task otel:port-forward
3232
```bash
3333
brew install go-task/tap/go-task
3434
git clone https://github.com/apeirora/otel-audit-log-poc.git
35-
cd audit-logpoc-for-otel
36-
task # run the app
35+
cd audit-log-poc-for-otel
36+
task # run the app
3737
task otel:port-forward #check http://localhost:8080
3838
#to stop port forwarding type ctrl + c in the terminal
3939
```

0 commit comments

Comments
 (0)