Skip to content

Commit

Permalink
build.sh script for build and test
Browse files Browse the repository at this point in the history
  • Loading branch information
Unic-X committed Sep 2, 2024
1 parent ac0eb36 commit c84082e
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#!/bin/bash

set -e

echo "Formatting Go code..."
gofmt -s -w $(pwd)

echo "Running go mod tidy..."
go mod tidy

echo "Running tests..."
go test -v ./...

echo "------------All tests passed successfully---------------"

echo "Building the project"
go build ./...

echo "Tasks completed successfully!"

0 comments on commit c84082e

Please sign in to comment.