Skip to content

Commit

Permalink
Add Github Action to go fmt, vet and build
Browse files Browse the repository at this point in the history
  • Loading branch information
pdecat committed Sep 28, 2022
1 parent b1955be commit 3779e64
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Build
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]

jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Set up Go 1.18
uses: actions/setup-go@v3
with:
go-version: 1.18

- name: Format
run: go fmt && git diff --exit-code

- name: Vet
run: go vet

- name: Build
run: go build

0 comments on commit 3779e64

Please sign in to comment.