diff --git a/.dockerignore b/.dockerignore index ccb5aaf..aaf7714 100644 --- a/.dockerignore +++ b/.dockerignore @@ -14,4 +14,5 @@ .idea/dataSources.local.xml fly.toml .vs -*.sqlite \ No newline at end of file +*.sqlite +coverage* diff --git a/.github/workflows/dive-check.yml b/.github/workflows/dive-check.yml index 5a977b9..e92bc87 100644 --- a/.github/workflows/dive-check.yml +++ b/.github/workflows/dive-check.yml @@ -1,9 +1,9 @@ name: CI Dive Check on: push: - branches: [ master ] + branches: [ main ] pull_request: - branches: [ master ] + branches: [ main ] workflow_dispatch: jobs: diff --git a/.github/workflows/fly.yml b/.github/workflows/fly.yml index c3c6395..168f20b 100644 --- a/.github/workflows/fly.yml +++ b/.github/workflows/fly.yml @@ -2,7 +2,7 @@ name: Fly Deploy on: push: branches: - - master + - main workflow_dispatch: jobs: deploy: diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 325304d..8cc19bf 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,10 +1,10 @@ -name: CI Build & Test +name: CI Build & Test with coverage on: push: - branches: [ "master" ] + branches: [ "main" ] pull_request: - branches: [ "master" ] + branches: [ "main" ] jobs: @@ -22,4 +22,10 @@ jobs: run: go build -v ./... - name: Test & Coverage - run: go test -v ./... -cover \ No newline at end of file + run: go test -v ./... -race -covermode=atomic -coverprofile=coverage.out + + - name: Upload coverage reports to Codecov + run: | + curl -Os https://uploader.codecov.io/latest/linux/codecov + chmod +x codecov + ./codecov -t ${CODECOV_TOKEN} \ No newline at end of file diff --git a/.gitignore b/.gitignore index 5d3cab1..cc985cd 100644 --- a/.gitignore +++ b/.gitignore @@ -3,4 +3,5 @@ db .idea .vs dist -*.sqlite \ No newline at end of file +*.sqlite +coverage* diff --git a/README.md b/README.md index 8af9747..01ffcd1 100644 --- a/README.md +++ b/README.md @@ -4,6 +4,8 @@ [![Fly Deploy](https://github.com/piraces/rsslay/actions/workflows/fly.yml/badge.svg)](https://github.com/piraces/rsslay/actions/workflows/fly.yml) [![CI Dive Check](https://github.com/piraces/rsslay/actions/workflows/dive-check.yml/badge.svg)](https://github.com/piraces/rsslay/actions/workflows/dive-check.yml) [![Publish Docker image](https://github.com/piraces/rsslay/actions/workflows/docker-publish.yml/badge.svg)](https://github.com/piraces/rsslay/actions/workflows/docker-publish.yml) +[![codecov](https://codecov.io/gh/piraces/rsslay/branch/main/graph/badge.svg?token=tNKcOjlxLo)](https://codecov.io/gh/piraces/rsslay) + ![Docker Hub](https://img.shields.io/docker/pulls/piraces/rsslay?logo=docker) [![Go Report Card](https://goreportcard.com/badge/github.com/piraces/rsslay)](https://goreportcard.com/report/github.com/piraces/rsslay) @@ -178,3 +180,5 @@ Also on [the bird site](https://twitter.com/piraces_), and [Mastodon](https://ha [Unlicense](https://unlicense.org). +[![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2Fpiraces%2Frsslay.svg?type=large)](https://app.fossa.com/projects/git%2Bgithub.com%2Fpiraces%2Frsslay?ref=badge_large) + diff --git a/web/templates/created.html.tmpl b/web/templates/created.html.tmpl index e03e228..660d1f7 100644 --- a/web/templates/created.html.tmpl +++ b/web/templates/created.html.tmpl @@ -82,7 +82,7 @@

rsslay original work by fiatjaf modifications by piraces. The source code is - UNlicensed. Keep the good vibes 🤙 + UNlicensed. Keep the good vibes 🤙

diff --git a/web/templates/index.html.tmpl b/web/templates/index.html.tmpl index 4b8b32c..69b1e98 100644 --- a/web/templates/index.html.tmpl +++ b/web/templates/index.html.tmpl @@ -139,7 +139,7 @@

rsslay original work by fiatjaf modifications by piraces. The source code is - UNlicensed. Keep the good vibes 🤙 + UNlicensed. Keep the good vibes 🤙

diff --git a/web/templates/search.html.tmpl b/web/templates/search.html.tmpl index 33ba858..7793798 100644 --- a/web/templates/search.html.tmpl +++ b/web/templates/search.html.tmpl @@ -145,7 +145,7 @@

rsslay original work by fiatjaf modifications by piraces. The source code is - UNlicensed. Keep the good vibes 🤙 + UNlicensed. Keep the good vibes 🤙