Skip to content

Commit

Permalink
chore: change to main named branch and modify workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
piraces committed Feb 5, 2023
1 parent 3ede1e5 commit 5594b8c
Show file tree
Hide file tree
Showing 9 changed files with 24 additions and 12 deletions.
3 changes: 2 additions & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,5 @@
.idea/dataSources.local.xml
fly.toml
.vs
*.sqlite
*.sqlite
coverage*
4 changes: 2 additions & 2 deletions .github/workflows/dive-check.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: CI Dive Check
on:
push:
branches: [ master ]
branches: [ main ]
pull_request:
branches: [ master ]
branches: [ main ]
workflow_dispatch:

jobs:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/fly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Fly Deploy
on:
push:
branches:
- master
- main
workflow_dispatch:
jobs:
deploy:
Expand Down
14 changes: 10 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -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:

Expand All @@ -22,4 +22,10 @@ jobs:
run: go build -v ./...

- name: Test & Coverage
run: go test -v ./... -cover
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}
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@ db
.idea
.vs
dist
*.sqlite
*.sqlite
coverage*
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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)

2 changes: 1 addition & 1 deletion web/templates/created.html.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@
<p>
<strong>rsslay</strong> original work by <a href="https://fiatjaf.com">fiatjaf</a> modifications by <a
href="https://piraces.dev">piraces</a>. The source code is
<a href="https://github.com/piraces/rsslay/blob/master/LICENSE">UNlicensed</a>. Keep the good vibes 🤙
<a href="https://github.com/piraces/rsslay/blob/main/LICENSE">UNlicensed</a>. Keep the good vibes 🤙
</p>
</div>
</footer>
Expand Down
2 changes: 1 addition & 1 deletion web/templates/index.html.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@
<p>
<strong>rsslay</strong> original work by <a href="https://fiatjaf.com">fiatjaf</a> modifications by <a
href="https://piraces.dev">piraces</a>. The source code is
<a href="https://github.com/piraces/rsslay/blob/master/LICENSE">UNlicensed</a>. Keep the good vibes 🤙
<a href="https://github.com/piraces/rsslay/blob/main/LICENSE">UNlicensed</a>. Keep the good vibes 🤙
</p>
</div>
</footer>
Expand Down
2 changes: 1 addition & 1 deletion web/templates/search.html.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@
<p>
<strong>rsslay</strong> original work by <a href="https://fiatjaf.com">fiatjaf</a> modifications by <a
href="https://piraces.dev">piraces</a>. The source code is
<a href="https://github.com/piraces/rsslay/blob/master/LICENSE">UNlicensed</a>. Keep the good vibes 🤙
<a href="https://github.com/piraces/rsslay/blob/main/LICENSE">UNlicensed</a>. Keep the good vibes 🤙
</p>
</div>
</footer>
Expand Down

0 comments on commit 5594b8c

Please sign in to comment.