Skip to content

Commit

Permalink
Simplify Build and Test GitHub Action
Browse files Browse the repository at this point in the history
Move spell checking into separate GitHub Action.

Remove linter and checks from Build and Test GitHub Action.
  • Loading branch information
HeavyWombat committed Jan 18, 2022
1 parent a2d2031 commit 6785aef
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 19 deletions.
25 changes: 6 additions & 19 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ name: Build and Tests
on:
push:
tags-ignore:
- '**'
- '**'
branches:
- main
- main
pull_request:
branches:
- main
- main

jobs:
build:
Expand All @@ -32,24 +32,11 @@ jobs:
restore-keys: |
${{ runner.os }}-go-
- name: Install Tools
run: |
go install github.com/gordonklaus/ineffassign@latest
go install golang.org/x/lint/golint@latest
go install github.com/client9/misspell/cmd/misspell@latest
go install honnef.co/go/tools/cmd/staticcheck@latest
go install github.com/onsi/ginkgo/ginkgo@latest
- run: go build ./...
- run: go vet ./...
- run: ineffassign ./...
- run: golint ./...
- run: find . -type f | xargs misspell -source=text -error
- run: staticcheck ./...
- name: Install Ginkgo
run: go install github.com/onsi/ginkgo/ginkgo@latest

- name: Run Go Unit Tests
run: |
ginkgo -r -randomizeAllSpecs -randomizeSuites -failOnPending -nodes=4 -compilers=2 -race -trace -cover
run: ginkgo -r -randomizeAllSpecs -randomizeSuites -failOnPending -nodes=4 -compilers=2 -race -trace -cover

- name: Upload Code Coverage Profile
uses: codecov/codecov-action@v1
Expand Down
32 changes: 32 additions & 0 deletions .github/workflows/misspell.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
---
name: Spell check

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

permissions:
contents: read

jobs:
misspell:
runs-on: ubuntu-latest
steps:
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.17.x

- name: Check out code
uses: actions/checkout@v2

- name: Install Tool
run: go install github.com/client9/misspell/cmd/misspell@latest

- run: find . -type f | xargs misspell -source=text -error

0 comments on commit 6785aef

Please sign in to comment.