-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor build process and update module path and Go version (#7)
* Refactor build process and update module path and Go version - **Makefile:** - Updated the build target to use `go build ./pkg/...` instead of `go build -o bin/bitbom main.go`. - **go.mod:** - Changed the module path from `github.com/turrisxyz/BitBom` to `github.com/bitbom/bitbom` to reflect the new repository location or naming convention. - Updated the Go version from `1.22.1` to `1.22.5` to leverage the latest features, improvements, and security patches available in the newer version. Signed-off-by: naveensrinivasan <172697+naveensrinivasan@users.noreply.github.com> * Included a GH Action to run build and test. Signed-off-by: naveensrinivasan <172697+naveensrinivasan@users.noreply.github.com> --------- Signed-off-by: naveensrinivasan <172697+naveensrinivasan@users.noreply.github.com>
- Loading branch information
1 parent
1b2ed54
commit 14e13ac
Showing
4 changed files
with
63 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
name: Build and Test | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
build-and-test: | ||
runs-on: ubuntu-latest | ||
|
||
permissions: | ||
contents: read | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5 # v2 | ||
|
||
- name: Set up Go | ||
uses: actions/setup-go@bfdd3570ce990073878bf10f6b2d79082de49492 # v2 | ||
with: | ||
go-version: '1.22.5' | ||
|
||
- name: Build | ||
run: make build | ||
|
||
- name: Test | ||
run: make test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
|
||
# Build target | ||
build: | ||
go build -o bin/bitbom main.go | ||
go build ./pkg/... | ||
|
||
# Test target | ||
test: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters