Skip to content

Commit

Permalink
Makefile: add build and test targets
Browse files Browse the repository at this point in the history
  • Loading branch information
stuart-mclaren-hpe committed Aug 20, 2024
1 parent a60150e commit 5f20acf
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Copyright 2024 Hewlett Packard Enterprise Development LP
name: Build

on: [push, pull_request]
jobs:
ci:
runs-on: ubuntu-20.04
strategy:
matrix:
go: [ '1.21' ]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go }}
- run: go version
- run: make build
- run: make test
6 changes: 6 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@
#
# Note: this Makefile works with GNUMake and BSDMake
#
build:
go build ./...

test:
go test ./...

lint:
@golangci-lint --version
# Will use .golangci.yml
Expand Down

0 comments on commit 5f20acf

Please sign in to comment.