Add basic CI and additional makefile commands

main
Drew Bednar 2 months ago
parent 80e0429f09
commit c3bb2b3475

@ -0,0 +1,19 @@
kind: pipeline
type: docker
name: default
steps:
- name: Unit Test and lint
image: golang:1.23-bookworm
commands:
- go mod download
- go test -v ./...
- go vet ./...
group: test-lint
trigger:
event:
- pull_request
- push
branch:
- main

2
.gitignore vendored

@ -21,3 +21,5 @@
# Go workspace file # Go workspace file
go.work go.work
# The compiled binary
bin

@ -3,4 +3,14 @@ run:
.PHONEY: run .PHONEY: run
test: test:
go test -v ./... go test -v ./...
.PHONEY: test
lint:
go fmt ./...
go vet ./...
.PHONEY: lint
race:
go test -race ./...
.PHONEY: race

@ -1,5 +1,7 @@
# Bug Box # Bug Box
![build-status](https://drone.runcible.io/api/badges/learning/bugbox/status.svg)
A RestAPI for managing bug enclosures. A RestAPI for managing bug enclosures.
## Project Structure ## Project Structure

Loading…
Cancel
Save