Skip to content

Commit

Permalink
update github workflows (#54)
Browse files Browse the repository at this point in the history
* remove sonarcloud and add codecov

* update greetings.yml

* update README.md, add codecov badge
  • Loading branch information
teckick authored May 19, 2020
1 parent 1dd5b40 commit 2738e28
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 9 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,8 @@ jobs:
- name: Test
run: make test

- name: SonarCloud Scan
uses: sonarsource/sonarcloud-github-action@master
- name: Codecov
uses: codecov/codecov-action@v1
with:
projectBaseDir: ${{ github.workspace }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN}}
file: ./.coverage.out
flags: unittests
3 changes: 1 addition & 2 deletions .github/workflows/greetings.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: Greetings

on: [pull_request, issues]
on: [issues]

jobs:
greeting:
Expand All @@ -10,4 +10,3 @@ jobs:
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
issue-message: 'Awesome! Thanks for taking the time to open an issue. We will have a look and answer as soon as we can.'
pr-message: 'Thank you for opening an PR. We will review the PR and provide feedback as soon as we can.'
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[![LICENSE](https://img.shields.io/badge/license-Apache--2.0-blue.svg)](https://github.com/nooncall/shazam/blob/master/LICENSE)
[![Build Status](https://github.com/nooncall/shazam/workflows/build/badge.svg)](https://github.com/nooncall/shazam/actions?query=workflow%3Abuild)
[![Go Report Card](https://goreportcard.com/badge/github.com/nooncall/shazam)](https://goreportcard.com/report/github.com/nooncall/shazam)
[![Coverage](https://sonarcloud.io/api/project_badges/measure?project=nooncall_shazam&metric=coverage)](https://sonarcloud.io/dashboard?id=nooncall_shazam)
[![codecov](https://codecov.io/gh/nooncall/shazam/branch/master/graph/badge.svg)](https://codecov.io/gh/nooncall/shazam)

## 简介

Expand Down

0 comments on commit 2738e28

Please sign in to comment.