diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 226602bc..e660f744 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -23,7 +23,6 @@ on: - .golangci.yml - go.mod - go.sum - workflow_dispatch: jobs: test: @@ -33,7 +32,12 @@ jobs: go-version: ["1.21.x"] steps: + - uses: actions/checkout@v4 + + - uses: rojopolis/spellcheck-github-actions@v0 + name: Spellcheck + - name: Setup Go uses: actions/setup-go@v4 with: diff --git a/.github/workflows/spellcheck.yml b/.github/workflows/spellcheck.yml new file mode 100644 index 00000000..8c70ba33 --- /dev/null +++ b/.github/workflows/spellcheck.yml @@ -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 \ No newline at end of file diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 3e24115c..928eee0d 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -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 diff --git a/cspell.json b/cspell.json new file mode 100644 index 00000000..d6bf0521 --- /dev/null +++ b/cspell.json @@ -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" + } + ] +} \ No newline at end of file diff --git a/project-words.txt b/project-words.txt index 6a04515a..fb585c6f 100644 --- a/project-words.txt +++ b/project-words.txt @@ -25,6 +25,7 @@ GBIC GBPS GEPON glbp +golangci govmomi gpon HOSTSTATUS @@ -79,6 +80,7 @@ vnic VRRP vsphere Warningf +wordlists XENPAK XGPON XGSPON