Skip to content

Commit

Permalink
Add linter and spellchecking
Browse files Browse the repository at this point in the history
Add linter and spellchecking.
  • Loading branch information
HeavyWombat committed Oct 12, 2022
1 parent da6d511 commit a36d3e2
Show file tree
Hide file tree
Showing 2 changed files with 63 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/golangci-lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
---
name: golangci-lint

on:
push:
tags-ignore:
- '**'
branches:
- main
pull_request:
branches:
- main

jobs:
build:
name: golangci-lint
runs-on: ubuntu-latest
steps:
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.18.x

- name: Check out code into the Go module directory
uses: actions/checkout@v3

- name: Build source code
run: go build ./...

- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
only-new-issues: true
30 changes: 30 additions & 0 deletions .github/workflows/misspell.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
---
name: spellcheck

on:
push:
tags-ignore:
- '**'
branches:
- main
pull_request:
branches:
- main

jobs:
build:
name: spellcheck
runs-on: ubuntu-latest
steps:
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.18.x

- name: Check out code into the Go module directory
uses: actions/checkout@v3

- name: Spellcheck
run: |
go install github.com/client9/misspell/cmd/misspell@latest
find . -type f | xargs misspell -source=text -error

0 comments on commit a36d3e2

Please sign in to comment.