Skip to content

Commit

Permalink
Merge pull request #92 from ethpandaops/ci/adds-check-typos
Browse files Browse the repository at this point in the history
feat: Add GitHub Actions workflow to check typos
  • Loading branch information
mattevans authored Feb 13, 2025
2 parents 0fb19cd + 0f1415b commit b6fcbe2
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
17 changes: 17 additions & 0 deletions .github/workflows/check-typos.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: check-typos

on:
pull_request:
branches:
- master

jobs:
check-typos:
name: Check typos
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Check for typos
uses: crate-ci/[email protected]
2 changes: 1 addition & 1 deletion internal/sidecar/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ func writeConfig(path string, cfg *config.Config) error {
// Now marshal to map for YAML.
var jsonMap map[string]interface{}
if jerr := json.Unmarshal(jsonData, &jsonMap); jerr != nil {
return fmt.Errorf("error unmarshaling json: %w", jerr)
return fmt.Errorf("error unmarshalling json: %w", jerr)
}

data, err := yaml.Marshal(jsonMap)
Expand Down

0 comments on commit b6fcbe2

Please sign in to comment.