-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Ian Moore
authored and
Ian Moore
committed
Apr 23, 2024
1 parent
51d62ab
commit f29e108
Showing
2 changed files
with
31 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: pr_and_push | ||
|
||
on: | ||
push: | ||
branches: [ "main" ] | ||
pull_request: | ||
branches: [ "main" ] | ||
|
||
jobs: | ||
|
||
checks: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Set up Go | ||
uses: actions/setup-go@v4 | ||
with: | ||
go-version: '1.22' | ||
|
||
- run: go install honnef.co/go/tools/cmd/staticcheck@latest | ||
- run: go install github.com/client9/misspell/cmd/misspell@latest | ||
- run: go install github.com/fzipp/gocyclo/cmd/gocyclo@latest | ||
- run: go install github.com/google/addlicense@latest | ||
- run: | ||
- run: wget https://github.com/go-task/task/releases/download/v3.36.0/task_linux_amd64.deb | ||
- run: dpkg -i task_linux_amd64.deb | ||
- run: rm task_linux_amd64.deb | ||
- run: task check | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
.* | ||
!/.gitignore | ||
!/.github | ||
/build | ||
|
||
# Added by vscode's C# extension | ||
|