Skip to content

Commit

Permalink
test: setup makefile and ci jobs for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sanathkumarbs committed Jan 27, 2024
1 parent 9690a10 commit 43ef843
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/base-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,18 @@ jobs:

- name: Make Build Docker Images
run: make build-image

test:
name: Test
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-go@v4
with:
go-version: '^1.21.3' # The Go version to download (if necessary) and use.

- name: Unit Tests
run: make unit-test
8 changes: 8 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,14 @@ clean:
$(info Running clean...)
@rm -rf bin/*

test:
$(info Running tests...)
@$(MAKE) unit-test

unit-test:
$(info Running unit-tests...)
go test -v -race -cover ./...

build:
@$(MAKE) build-go
@$(MAKE) build-image
Expand Down

0 comments on commit 43ef843

Please sign in to comment.