Skip to content

Commit

Permalink
Add github workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Ian Moore authored and Ian Moore committed Apr 23, 2024
1 parent 51d62ab commit f29e108
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/pr.yaml
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

1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
.*
!/.gitignore
!/.github
/build

# Added by vscode's C# extension
Expand Down

0 comments on commit f29e108

Please sign in to comment.