Skip to content

Commit

Permalink
Adding spellcheck action
Browse files Browse the repository at this point in the history
  • Loading branch information
bl4ko committed Feb 7, 2024
1 parent d8cf39f commit caf5b61
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 7 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ on:
- .golangci.yml
- go.mod
- go.sum
workflow_dispatch:

jobs:
test:
Expand All @@ -33,7 +32,12 @@ jobs:
go-version: ["1.21.x"]

steps:

- uses: actions/checkout@v4

- uses: rojopolis/spellcheck-github-actions@v0

Check warning on line 38 in .github/workflows/ci.yml

View workflow job for this annotation

GitHub Actions / spellcheck

Unknown word (rojopolis)
name: Spellcheck

- name: Setup Go
uses: actions/setup-go@v4
with:
Expand Down
10 changes: 10 additions & 0 deletions .github/workflows/spellcheck.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
name: Spellcheck Action
on:
push:

jobs:
spellcheck:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: streetsidesoftware/cspell-action@v5
6 changes: 0 additions & 6 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,3 @@ repos:
language: golang
require_serial: true
pass_filenames: false

# - id: git-secrets
# name: Git Secrets
# description: git-secrets scans commits, commit messages, and --no-ff merges to prevent adding secrets into your git repositories.
# entry: "git-secrets --pre_commit_hook"
# language: script
15 changes: 15 additions & 0 deletions cspell.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
// cSpell Settings
{
// Version of the setting file. Always 0.2
"version": "0.2",
"language": "en",
"dictionaries": [
"project-words"
],
"dictionaryDefinitions": [
{
"name": "project-words",
"path": "./project-words.txt"
}
]
}
2 changes: 2 additions & 0 deletions project-words.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ GBIC
GBPS
GEPON
glbp
golangci
govmomi
gpon
HOSTSTATUS
Expand Down Expand Up @@ -79,6 +80,7 @@ vnic
VRRP
vsphere
Warningf
wordlists
XENPAK
XGPON
XGSPON

0 comments on commit caf5b61

Please sign in to comment.