Skip to content

Commit

Permalink
👷 (SETUP) Changes to codecov setup
Browse files Browse the repository at this point in the history
  • Loading branch information
Vitor Hugo committed Sep 7, 2023
1 parent 853fade commit 7ce864d
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 7 deletions.
12 changes: 5 additions & 7 deletions .github/workflows/coverage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 ./...
Expand All @@ -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
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
5 changes: 5 additions & 0 deletions codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
coverage:
status:
patch:
default:
target: 80%

0 comments on commit 7ce864d

Please sign in to comment.