From 2738e28f7bee56c19470addac504c7e7053d2c72 Mon Sep 17 00:00:00 2001 From: eastfisher Date: Tue, 19 May 2020 21:10:17 +0800 Subject: [PATCH] update github workflows (#54) * remove sonarcloud and add codecov * update greetings.yml * update README.md, add codecov badge --- .github/workflows/build.yml | 10 ++++------ .github/workflows/greetings.yml | 3 +-- README.md | 2 +- 3 files changed, 6 insertions(+), 9 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 520d952..032b4ff 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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 diff --git a/.github/workflows/greetings.yml b/.github/workflows/greetings.yml index 06f4fb1..3172ffc 100644 --- a/.github/workflows/greetings.yml +++ b/.github/workflows/greetings.yml @@ -1,6 +1,6 @@ name: Greetings -on: [pull_request, issues] +on: [issues] jobs: greeting: @@ -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.' diff --git a/README.md b/README.md index c2e051d..a78c230 100644 --- a/README.md +++ b/README.md @@ -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) ## 简介