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 33d22f2
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 8 deletions.
5 changes: 3 additions & 2 deletions .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,9 @@ jobs:
go-version: ["1.21.x"]

steps:
- uses: actions/checkout@v4
- name: Checkout code
uses: actions/checkout@v4

- 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
14 changes: 14 additions & 0 deletions cspell.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
// cSpell Settings
{
// Version of the setting file. Always 0.2
"language": "en",
"dictionaries": [
"project-words"
],
"dictionaryDefinitions": [
{
"name": "project-words",
"path": "./project-words.txt"
}
]
}
4 changes: 4 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,9 @@ vnic
VRRP
vsphere
Warningf
wordlists
XENPAK
XGPON
XGSPON
goinstall
rojopolis

0 comments on commit 33d22f2

Please sign in to comment.