From 2b280579188bfcbe78d14cf38cc9d69abe34354f Mon Sep 17 00:00:00 2001 From: Vasiliy Tolstov Date: Thu, 7 Apr 2022 18:56:10 +0300 Subject: [PATCH 1/5] add codecov Signed-off-by: Vasiliy Tolstov --- .github/workflows/autoapprove.yml | 6 ++++- .github/workflows/codecov.yml | 37 +++++++++++++++++++++++++++++++ 2 files changed, 42 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/codecov.yml diff --git a/.github/workflows/autoapprove.yml b/.github/workflows/autoapprove.yml index ebe28c91..6491ae95 100644 --- a/.github/workflows/autoapprove.yml +++ b/.github/workflows/autoapprove.yml @@ -3,6 +3,10 @@ name: "autoapprove" on: pull_request_target: types: [assigned, opened, synchronize, reopened] + workflow_run: + workflows: ["prbuild"] + types: + - completed permissions: pull-requests: write @@ -17,4 +21,4 @@ jobs: if: github.actor == 'vtolstov' || github.actor == 'dependabot[bot]' id: approve with: - github-token: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file + github-token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/codecov.yml b/.github/workflows/codecov.yml new file mode 100644 index 00000000..d2204f29 --- /dev/null +++ b/.github/workflows/codecov.yml @@ -0,0 +1,37 @@ +name: "codecov" + +on: + workflow_run: + workflows: ["build"] + types: + - completed + push: + branches: [ v3 ] + pull_request: + branches: [ v3 ] + schedule: + - cron: '34 1 * * 0' + +jobs: + analyze: + name: analyze + runs-on: ubuntu-latest + permissions: + actions: read + contents: read + security-events: write + + strategy: + fail-fast: false + matrix: + language: [ 'go' ] + + steps: + - name: checkout + uses: actions/checkout@v3 + - name: setup + uses: actions/setup-go@v2 + with: + go-version: 1.17 + - name: Codecov + uses: codecov/codecov-action@v3.0.0 -- 2.45.2 From 63641b984054a884847ac6fb3567c568af34ef5d Mon Sep 17 00:00:00 2001 From: Vasiliy Tolstov Date: Thu, 7 Apr 2022 18:57:30 +0300 Subject: [PATCH 2/5] add codecov Signed-off-by: Vasiliy Tolstov --- .github/workflows/codecov.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/codecov.yml b/.github/workflows/codecov.yml index d2204f29..641b5270 100644 --- a/.github/workflows/codecov.yml +++ b/.github/workflows/codecov.yml @@ -13,8 +13,8 @@ on: - cron: '34 1 * * 0' jobs: - analyze: - name: analyze + codecov: + name: codecov runs-on: ubuntu-latest permissions: actions: read -- 2.45.2 From 98d2264c2a533946cb5940a3184fe8242119bb44 Mon Sep 17 00:00:00 2001 From: Vasiliy Tolstov Date: Thu, 7 Apr 2022 19:00:08 +0300 Subject: [PATCH 3/5] add codecov Signed-off-by: Vasiliy Tolstov --- .github/workflows/codecov.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/codecov.yml b/.github/workflows/codecov.yml index 641b5270..02b4c91c 100644 --- a/.github/workflows/codecov.yml +++ b/.github/workflows/codecov.yml @@ -33,5 +33,7 @@ jobs: uses: actions/setup-go@v2 with: go-version: 1.17 + - name: Run coverage + run: go test -v -race -coverprofile=coverage.out -covermode=atomic - name: Codecov uses: codecov/codecov-action@v3.0.0 -- 2.45.2 From a8c6690af7c98b82aebdf8af6fabe64b1ed8629f Mon Sep 17 00:00:00 2001 From: Vasiliy Tolstov Date: Thu, 7 Apr 2022 19:04:04 +0300 Subject: [PATCH 4/5] add codecov Signed-off-by: Vasiliy Tolstov --- .github/workflows/codecov.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/codecov.yml b/.github/workflows/codecov.yml index 02b4c91c..efdd3379 100644 --- a/.github/workflows/codecov.yml +++ b/.github/workflows/codecov.yml @@ -34,6 +34,6 @@ jobs: with: go-version: 1.17 - name: Run coverage - run: go test -v -race -coverprofile=coverage.out -covermode=atomic + run: go test -v -race -coverprofile=coverage.out -covermode=atomic - name: Codecov uses: codecov/codecov-action@v3.0.0 -- 2.45.2 From 5c00e6763f205eb29e6c4dd106726112130200f2 Mon Sep 17 00:00:00 2001 From: Vasiliy Tolstov Date: Thu, 7 Apr 2022 19:08:45 +0300 Subject: [PATCH 5/5] Update README.md fix link to godoc --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index a9097244..2c61dd92 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# Micro [![License](https://img.shields.io/:license-apache-blue.svg)](https://opensource.org/licenses/Apache-2.0) [![Doc](https://img.shields.io/badge/go.dev-reference-007d9c?logo=go&logoColor=white&style=flat-square)](https://pkg.go.dev/github.com/unistack-org/micro/v3?tab=overview) [![Status](https://github.com/unistack-org/micro/workflows/build/badge.svg?branch=master)](https://github.com/unistack-org/micro/actions?query=workflow%3Abuild+branch%3Amaster+event%3Apush) [![Lint](https://goreportcard.com/badge/go.unistack.org/micro/v3)](https://goreportcard.com/report/go.unistack.org/micro/v3) [![Slack](https://img.shields.io/static/v1?label=micro&message=slack&color=blueviolet)](https://unistack-org.slack.com/messages/default) +# Micro [![License](https://img.shields.io/:license-apache-blue.svg)](https://opensource.org/licenses/Apache-2.0) [![Doc](https://img.shields.io/badge/go.dev-reference-007d9c?logo=go&logoColor=white&style=flat-square)](https://pkg.go.dev/go.unistack.org/micro/v3?tab=overview) [![Status](https://github.com/unistack-org/micro/workflows/build/badge.svg?branch=master)](https://github.com/unistack-org/micro/actions?query=workflow%3Abuild+branch%3Amaster+event%3Apush) [![Lint](https://goreportcard.com/badge/go.unistack.org/micro/v3)](https://goreportcard.com/report/go.unistack.org/micro/v3) Micro is a standard library for microservices. -- 2.45.2