From 7ce864d71da3f06d06e4f7c25b7da66b4eb92f3c Mon Sep 17 00:00:00 2001 From: Vitor Hugo Date: Thu, 7 Sep 2023 20:28:32 -0300 Subject: [PATCH] :construction_worker: (SETUP) Changes to codecov setup --- .github/workflows/coverage.yaml | 12 +++++------- README.md | 2 ++ codecov.yml | 5 +++++ 3 files changed, 12 insertions(+), 7 deletions(-) create mode 100644 codecov.yml diff --git a/.github/workflows/coverage.yaml b/.github/workflows/coverage.yaml index 04b9898..3f416d2 100644 --- a/.github/workflows/coverage.yaml +++ b/.github/workflows/coverage.yaml @@ -13,15 +13,13 @@ jobs: name: Build runs-on: ubuntu-latest steps: + - name: Check out code + uses: actions/checkout@v4 - name: Set up Go 1.x - uses: actions/setup-go@v2 + uses: actions/setup-go@v4 with: - go-version: ^1.16 - cache-dependency-path: go.sum - - - name: Check out code into the Go module directory - uses: actions/checkout@v2 + go-version: stable - name: Get dependencies run: go get -v -t -d ./... @@ -30,7 +28,7 @@ jobs: run: go test -v ./... -coverprofile=coverage.txt -covermode=atomic - name: Upload coverage to Codecov - uses: codecov/codecov-action@v1 + uses: codecov/codecov-action@v3 with: token: ${{ secrets.CODECOV_TOKEN }} file: ./coverage.txt \ No newline at end of file diff --git a/README.md b/README.md index b7a9d09..0a74fef 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,7 @@ # 🌩 Zeus - Simple Dependency Injection Container +[![codecov](https://codecov.io/gh/Otoru/zeus/graph/badge.svg?token=Yfkyp5NZsY)](https://codecov.io/gh/Otoru/zeus) + Zeus is a sleek and efficient dependency injection container for Go. Easily register "factories" (functions that create instances of types) and let zeus resolve those dependencies at runtime. ## 🌟 Features diff --git a/codecov.yml b/codecov.yml new file mode 100644 index 0000000..9c2393c --- /dev/null +++ b/codecov.yml @@ -0,0 +1,5 @@ +coverage: + status: + patch: + default: + target: 80% \ No newline at end of file