Skip to content

Commit

Permalink
Tests and validation pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
cbeimers113 committed Jul 23, 2023
1 parent 3b30a35 commit cbe2520
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/gobuild.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# This workflow will run checks and validate the build

name: GoBuild

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Setup Go
uses: actions/setup-go@v2
with:
go-version: '1.18'

- name: Install Dependencies
run: |
go install honnef.co/go/tools/cmd/staticcheck@latest
go mod tidy
- name: Lint & Vet
run: |
go vet .
staticcheck .
- name: Build Validation
run: go build .

0 comments on commit cbe2520

Please sign in to comment.