Skip to content

Commit

Permalink
Add github workflow to build and test
Browse files Browse the repository at this point in the history
  • Loading branch information
PrasadG193 authored Nov 29, 2023
1 parent a22d75a commit b3c9684
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Build

on:
push:
branches: [ develop, master ]
pull_request:
branches: [ "develop" ]

jobs:

build:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: [ '1.19', '1.20', '1.21.x' ]
- name: Gomod
run: go mod download
- name: Golint
run: hack/verify-golint.sh
- name: Gofmt
run: hack/verify-gofmt.sh
- name: Go vet
run: hack/verify-govet.sh
- name: Test
run: go test -race -cover ./...

0 comments on commit b3c9684

Please sign in to comment.