Skip to content

Adds Makefile - #129

Open
ikopke23 wants to merge 4 commits into
ComputerScienceHouse:devfrom
ikopke23:makefile
Open

ikopke23 wants to merge 4 commits into
ComputerScienceHouse:devfrom
ikopke23:makefile

Conversation

@ikopke23

Copy link
Copy Markdown

What

Ported over a Makefile that I have for my Go projects.
(I stole the CI commands to make the Makefile up to date for this repo)
Note: make run probably should be

  • make build: builds bin/vote
  • make run: docker-compose up
  • make test: go test -count=1 ./database
  • make vet: go vet ./database/ ./logging/ ./sse/ and go vet *.go
  • make lint: gofmt -w -s *.go sse logging database
  • make tidy-check: go mod tidy -diff
  • make check: tidy-check, lint, vet and test
  • make coverage: go test -coverprofile=coverage.out ./database go tool cover -html=coverage.out
  • make clean: `rm -rf bin/ coverage.out

Why

It makes it easier to run and manage things this way in my opinion. Make is great

Test Plan

Run all the make commands to ensure that they work

Env Vars

did you add, remove, or rename any environment variables
No

Documentation

did you add or update any documentation. PRs should, at the minimum, update documentation when they make existing documentation out of date.

Yes

Checklist

  • Tested all changes locally

@datadog-computersciencehouse

datadog-computersciencehouse Bot commented Nov 25, 2026 •

Copy link
Copy Markdown

Pipelines

⚠️ Warnings

Your PR has warnings. Please review the issues below.

🚦 1 Pipeline job failed

SonarQube | Build and analyze

View more details · View in GitHub Actions

Useful? React with 👍 / 👎

This comment will be updated automatically if new data arrives.
🔗 Commit SHA: eee7e19 | Docs | View more details | Give us feedback!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant