diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 22951d4..17fefda 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -4,6 +4,7 @@ on: [push] jobs: build: runs-on: ubuntu-latest + environment: Build secrets steps: - uses: actions/checkout@v4 @@ -15,3 +16,7 @@ jobs: run: go get ./... - name: Run tests run: make test + - name: Upload coverage to Codecov + uses: codecov/codecov-action@v4-beta + env: + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} diff --git a/README.md b/README.md index 2ddb6e4..62875f3 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT) [![Go](https://img.shields.io/badge/Go-1.x-success.svg)](https://golang.org/) [![AWS Lambda](https://img.shields.io/badge/AWS-Lambda-orange.svg)](https://aws.amazon.com/lambda/) -[![Codacy Badge](https://api.codacy.com/project/badge/Grade/40c5e0b1db42449b91e0a4a0f5a0dcdf)](https://www.codacy.com/app/ElliottLandsborough/dog-ceo-api-golang?utm_source=github.com&utm_medium=referral&utm_content=ElliottLandsborough/dog-ceo-api-golang&utm_campaign=Badge_Grade) +[![Codacy Badge](https://app.codacy.com/project/badge/Grade/40c5e0b1db42449b91e0a4a0f5a0dcdf)](https://app.codacy.com/gh/ElliottLandsborough/dog-ceo-api-golang/dashboard?utm_source=gh&utm_medium=referral&utm_content=&utm_campaign=Badge_grade) The AWS Lambda functions used for the [dog.ceo api](https://dog.ceo/api).