Skip to content

Commit

Permalink
Updated github actions with reviewdog
Browse files Browse the repository at this point in the history
  • Loading branch information
brittonhayes committed Feb 28, 2021
1 parent 2d072a5 commit fbfc0ad
Show file tree
Hide file tree
Showing 6 changed files with 36 additions and 28 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
name: benchmark
on:
push:
branches:
- main
pull_request:

on: [ pull_request ]

jobs:
benchmark:
name: Run benchmarks
Expand All @@ -15,5 +13,6 @@ jobs:
- uses: actions/checkout@v2
- name: Install dependencies
run: go get ./...

- name: Run benchmarks
run: go test -bench . -benchmem ./...
5 changes: 3 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: Build

on: push
on: [ pull_request ]

jobs:
goreleaser:
Expand All @@ -14,7 +14,8 @@ jobs:
uses: actions/setup-go@v2
with:
go-version: 1.16
- name: Run GoReleaser

- name: Build executables
uses: goreleaser/goreleaser-action@v2
with:
version: latest
Expand Down
34 changes: 23 additions & 11 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,28 @@
name: golangci-lint
on:
push:
branches:
- main
pull_request:
name: reviewdog

on: [ pull_request ]

jobs:
golangci:
name: lint
golangci-lint:
name: golangci-lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Check out code into the Go module directory
uses: actions/checkout@v1

- name: golangci-lint
uses: golangci/golangci-lint-action@v2
uses: reviewdog/action-golangci-lint@v1

misspell:
name: misspell
runs-on: ubuntu-latest
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v1

- name: misspell
uses: reviewdog/action-golangci-lint@v1
with:
version: v1.29
golangci_lint_flags: "--disable-all -E misspell"
tool_name: misspell
level: info
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
uses: actions/setup-go@v2
with:
go-version: 1.16
- name: Run GoReleaser
- name: Run GoReleaser and release executables
uses: goreleaser/goreleaser-action@v2
with:
version: latest
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
name: test
on:
push:
branches:
- main
pull_request:

on: [ pull_request ]

jobs:
test:
name: Run tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.16

- name: test
run: go test -v ./...
4 changes: 0 additions & 4 deletions doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,4 @@ THE SOFTWARE.
// scoop bucket add pillager https://github.com/brittonhayes/pillager-scoop.git
// scoop install pillager
//
// Disclaimer
//
//
// This goes without saying but I'm going to say it anyways: I am not responsible for any repercussions caused by your use of pillager. This tool is intended for defensive, Blue Team use.
package main

0 comments on commit fbfc0ad

Please sign in to comment.