Skip to content

Commit

Permalink
Merge pull request #1 from studyzy/coverall
Browse files Browse the repository at this point in the history
Coverall
  • Loading branch information
studyzy committed Oct 22, 2021
2 parents 4f92fc6 + 5fef5ef commit 1b023b1
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
name: Go

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
on: [push]

jobs:

Expand All @@ -22,4 +18,9 @@ jobs:
run: go build -v ./...

- name: Test
run: go test -v ./...
run: go test -v -coverprofile=profile.cov ./...

- name: Send coverage
uses: shogo82148/actions-goveralls@v1
with:
path-to-profile: profile.cov
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@
A lightweight IoC dependency injection container for Golang
[![Build status](https://github.com/studyzy/iocgo/workflows/Go/badge.svg)](https://github.com/studyzy/iocgo/actions)

[![Coverage Status](https://coveralls.io/repos/github/studyzy/iocgo/badge.svg)](https://coveralls.io/github/studyzy/iocgo)

English | [中文](https://github.com/studyzy/iocgo/blob/main/README-zh_CN.md)

# How to use
## Installation
it requires Go 1.15 or newer versions.
Expand Down

0 comments on commit 1b023b1

Please sign in to comment.