From 622dd0f8e9736ca108d85a6dc0af49ce9379c314 Mon Sep 17 00:00:00 2001 From: Marcos Tenrero Date: Mon, 5 Oct 2020 16:21:20 +0200 Subject: [PATCH] Updated CI GitHub Actions --- .github/workflows/go-tagged.yml | 13 +++++++++++-- .github/workflows/go.yml | 3 ++- README.md | 9 ++++++++- 3 files changed, 21 insertions(+), 4 deletions(-) diff --git a/.github/workflows/go-tagged.yml b/.github/workflows/go-tagged.yml index 4d2eb09..9a17fcf 100644 --- a/.github/workflows/go-tagged.yml +++ b/.github/workflows/go-tagged.yml @@ -35,6 +35,15 @@ jobs: - name: Test run: go test -v . + - name: Coverage + run: go test -v -coverprofile=profile.cov ./... + + - name: SendCoverage + uses: shogo82148/actions-goveralls@v1 + with: + flag-name: ${{ github.ref }} + path-to-profile: profile.cov + - name: Build run: make build_all @@ -44,7 +53,7 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions with: - tag_name: ${{ github.ref }} + tag_name: main-${{ github.ref }} release_name: Release ${{ github.ref }} draft: false - prerelease: false \ No newline at end of file + prerelease: true \ No newline at end of file diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 63db173..1769088 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -42,6 +42,7 @@ jobs: - name: SendCoverage uses: shogo82148/actions-goveralls@v1 with: + flag-name: ${{ github.ref }} path-to-profile: profile.cov - name: Build @@ -54,6 +55,6 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions with: tag_name: main-${{ github.run_id }} - release_name: Release ${{ github.ref }} + release_name: PreRelease ${{ github.run_id }} draft: false prerelease: true \ No newline at end of file diff --git a/README.md b/README.md index 8f19f77..a1156b2 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,11 @@ - # k8sconfigmap-azappservice +# k8sconfigmap-azappservice + +[![made-with-Go](https://img.shields.io/badge/Made%20with-Go-1f425f.svg)](http://golang.org) +![Latest CI Status](https://badgen.net/github/status/mtenrero/k8sconfigmap-azappservice/main) +[![GitHub go.mod Go version of a Go module](https://img.shields.io/github/go-mod/go-version/gomods/athens.svg)](https://github.com/gomods/athens) +[![Coverage Status](https://coveralls.io/repos/github/mtenrero/k8sConfigMap-AzAppService/badge.svg?branch=main)](https://coveralls.io/github/mtenrero/k8sConfigMap-AzAppService?branch=main) +[![Go Report Card](https://goreportcard.com/badge/github.com/mtenrero/k8sconfigmap-azappservice)](https://goreportcard.com/report/github.com/mtenrero/k8sconfigmap-azappservice) +[![Latest Release](https://badgen.net/github/release/mtenrero/k8sconfigmap-azappservice/stable)](https://badgen.net/github/release/mtenrero/k8sconfigmap-azappservice/stable) This CLI executable program, transform a given Kubernetes ConfigMap into a JSON object ready to consume by Azure AppService container as environment variables.