build: refine Makefile targets and build command (#666)

* build: refine Makefile targets and build command

- Remove `test` from `.PHONY` and add `install`, `run`, and `clean` targets to `.PHONY`
- Replace build command to include verbose flag and remove `-mod vendor` option

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>

* docs: refine README structure and update tests

- Add a "Table of Contents" section to the README
- Reorganize sections within the README, moving "Configuring AWS SES alerts" and "How to change the color thresholds of the response time badge"
- Remove "Sponsors" section from the README
- Update the test command in the README from `go test ./... -mod vendor` to `go test -v ./...`

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>

---------

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
This commit is contained in:
Bo-Yi Wu 2024-01-29 14:12:14 +08:00 committed by GitHub
parent bdad56e205
commit 228cd4d1fb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 9 additions and 7 deletions

View File

@ -1,17 +1,18 @@
BINARY=gatus BINARY=gatus
# Because there's a folder called "test", we need to make the target "test" phony .PHONY: install
.PHONY: test
install: install:
go build -mod vendor -o $(BINARY) . go build -v -o $(BINARY) .
.PHONY: run
run: run:
GATUS_CONFIG_PATH=./config.yaml ./$(BINARY) GATUS_CONFIG_PATH=./config.yaml ./$(BINARY)
.PHONY: clean
clean: clean:
rm $(BINARY) rm $(BINARY)
.PHONY: test
test: test:
go test ./... -cover go test ./... -cover

View File

@ -38,6 +38,7 @@ Have any feedback or questions? [Create a discussion](https://github.com/TwiN/ga
## Table of Contents ## Table of Contents
- [Table of Contents](#table-of-contents)
- [Why Gatus?](#why-gatus) - [Why Gatus?](#why-gatus)
- [Features](#features) - [Features](#features)
- [Usage](#usage) - [Usage](#usage)
@ -48,7 +49,6 @@ Have any feedback or questions? [Create a discussion](https://github.com/TwiN/ga
- [Storage](#storage) - [Storage](#storage)
- [Client configuration](#client-configuration) - [Client configuration](#client-configuration)
- [Alerting](#alerting) - [Alerting](#alerting)
- [Configuring AWS SES alerts](#configuring-aws-ses-alerts)
- [Configuring Discord alerts](#configuring-discord-alerts) - [Configuring Discord alerts](#configuring-discord-alerts)
- [Configuring Email alerts](#configuring-email-alerts) - [Configuring Email alerts](#configuring-email-alerts)
- [Configuring GitHub alerts](#configuring-github-alerts) - [Configuring GitHub alerts](#configuring-github-alerts)
@ -66,6 +66,7 @@ Have any feedback or questions? [Create a discussion](https://github.com/TwiN/ga
- [Configuring Teams alerts](#configuring-teams-alerts) - [Configuring Teams alerts](#configuring-teams-alerts)
- [Configuring Telegram alerts](#configuring-telegram-alerts) - [Configuring Telegram alerts](#configuring-telegram-alerts)
- [Configuring Twilio alerts](#configuring-twilio-alerts) - [Configuring Twilio alerts](#configuring-twilio-alerts)
- [Configuring AWS SES alerts](#configuring-aws-ses-alerts)
- [Configuring custom alerts](#configuring-custom-alerts) - [Configuring custom alerts](#configuring-custom-alerts)
- [Setting a default alert](#setting-a-default-alert) - [Setting a default alert](#setting-a-default-alert)
- [Maintenance](#maintenance) - [Maintenance](#maintenance)
@ -107,10 +108,10 @@ Have any feedback or questions? [Create a discussion](https://github.com/TwiN/ga
- [Uptime](#uptime) - [Uptime](#uptime)
- [Health](#health) - [Health](#health)
- [Response time](#response-time) - [Response time](#response-time)
- [How to change the color thresholds of the response time badge](#how-to-change-the-color-thresholds-of-the-response-time-badge)
- [API](#api) - [API](#api)
- [Installing as binary](#installing-as-binary) - [Installing as binary](#installing-as-binary)
- [High level design overview](#high-level-design-overview) - [High level design overview](#high-level-design-overview)
- [Sponsors](#sponsors)
## Why Gatus? ## Why Gatus?
@ -1504,7 +1505,7 @@ Gatus can be deployed on Terraform by using the following module: [terraform-kub
## Running the tests ## Running the tests
```console ```console
go test ./... -mod vendor go test -v ./...
``` ```