Skip to content

Commit

Permalink
Adds gha
Browse files Browse the repository at this point in the history
  • Loading branch information
Eagerod committed May 7, 2023
1 parent cdc93c5 commit fe456cf
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/go.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Go

on: push

jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:

- name: Set up Go 1.x
uses: actions/setup-go@v3
with:
go-version: ^1.19
id: go

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

- name: Install Staticcheck
run: go install honnef.co/go/tools/cmd/[email protected]

- name: Install Dependencies
run: go mod download

- name: Lint
run: |
if [ -n "$(make fmt)" ]; then
echo >&2 "Linting failed. Fix files listed above."
exit 1
fi
- name: Test
run: make test

0 comments on commit fe456cf

Please sign in to comment.