Skip to content

Commit

Permalink
fix(workflow): removed codecov and updated readme
Browse files Browse the repository at this point in the history
  • Loading branch information
vkuksa committed Apr 5, 2024
1 parent fa1bbe0 commit 6c1501a
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 19 deletions.
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
name: upload-codecov
name: lint

on:
push:
branches: [dev]

jobs:
build:
lint:
runs-on: 'ubuntu-22.04'
env:
CODECOV_TOKEN: ${{secrets.CODECOV_TOKEN}}
Expand All @@ -22,9 +22,3 @@ jobs:
uses: 'golangci/golangci-lint-action@v3'
with:
skip-cache: true

- name: 'Run coverage'
run: 'go test -race -coverprofile=coverage.txt -covermode=atomic ./...'

- name: 'Upload coverage to Codecov'
uses: 'codecov/codecov-action@v3'
10 changes: 1 addition & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,13 @@
[![Tag](https://img.shields.io/github/v/tag/vkuksa/shortly)](https://github.com/vkuksa/shortly/tags)
[![Go Report](https://goreportcard.com/badge/github.com/vkuksa/shortly)](https://goreportcard.com/report/github.com/vkuksa/shortly)
[![main](https://github.com/vkuksa/shortly/actions/workflows/main.yaml/badge.svg)](https://github.com/vkuksa/shortly/actions/workflows/main.yaml)
[![Coverage](https://codecov.io/gh/vkuksa/shortly/branch/dev/graph/badge.svg)](https://codecov.io/gh/vkuksa/shortly)

---

A link shortening service.

Has integration with Prometheus, Grafana and Alertmanager.
Intention was in creation of a simple functionality showcasing usage of Clean Architecture, Prometheus, Grafana and Alertmanager.

As a datastorage can utilise bbolt or store data in memory as a map.

Configuration is performed via shortly.conf.
Currently only 2 kinds of DB are supported: bbolt and inmem.

# Installation

Expand All @@ -29,9 +24,6 @@ $ make
$ make test
```

# Docker compose
Supports docker-compose

# Prometheus
Supported metrics:
- `shortly_http_request_count` (Total number of requests by route)
Expand Down
1 change: 0 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ require (
github.com/prometheus/common v0.42.0 // indirect
github.com/prometheus/procfs v0.9.0 // indirect
github.com/rogpeppe/go-internal v1.11.0 // indirect
github.com/stretchr/objx v0.5.0 // indirect
golang.org/x/sys v0.8.0 // indirect
google.golang.org/protobuf v1.30.0 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
Expand Down
1 change: 0 additions & 1 deletion go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ github.com/sethvargo/go-envconfig v0.9.0 h1:Q6FQ6hVEeTECULvkJZakq3dZMeBQ3JUpcKMf
github.com/sethvargo/go-envconfig v0.9.0/go.mod h1:Iz1Gy1Sf3T64TQlJSvee81qDhf7YIlt8GMUX6yyNFs0=
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
github.com/stretchr/objx v0.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSSt89Yw=
github.com/stretchr/objx v0.5.0 h1:1zr/of2m5FGMsad5YfcqgdqdWrIhu+EBEJRhR1U7z/c=
github.com/stretchr/objx v0.5.0/go.mod h1:Yh+to48EsGEfYuaHDzXPcE3xhTkx73EhmCGUpEOglKo=
github.com/stretchr/testify v1.5.1/go.mod h1:5W2xD1RspED5o8YsWQXVCued0rvSQ+mT+I5cxcmMvtA=
github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
Expand Down

0 comments on commit 6c1501a

Please sign in to comment.