Skip to content

Commit

Permalink
fix input parameter requirements (#10)
Browse files Browse the repository at this point in the history
* fix input parameter requirements
* simplify go test invocation

Co-authored-by: Septs <github@septs.pw>
  • Loading branch information
jandelgado and septs committed Oct 17, 2020
1 parent e31779e commit 91f9b36
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 11 deletions.
13 changes: 5 additions & 8 deletions README.md
Expand Up @@ -22,7 +22,7 @@ uses [gcov2lcov](https://github.com/jandelgado/gcov2lcov) under the hood.

### `working-directory`

**Optional** Name of the change to specific working-directory.
**Optional** Name of directory where gcov2lcov is run. Defaults to `$GITHUB_WORKSPACE`.

## Outputs

Expand All @@ -47,18 +47,15 @@ coverage:
steps:
- name: Install Go
if: success()
uses: actions/setup-go@v2-beta
uses: actions/setup-go@v2
with:
go-version: 1.15.x
- name: Checkout code
uses: actions/checkout@v2
- name: Calc coverage
run: |
export PATH=$PATH:$(go env GOPATH)/bin
go test -v -covermode=count -coverprofile=coverage.out
run: go test -v -covermode=count -coverprofile=coverage.out
- name: Convert coverage to lcov
uses: jandelgado/gcov2lcov-action@v1.0.5
with:
infile: coverage.out
outfile: coverage.lcov
- name: Coveralls
uses: coverallsapp/github-action@v1.0.4
with:
Expand Down
6 changes: 3 additions & 3 deletions action.yml
Expand Up @@ -5,15 +5,15 @@ description: "convert golang coverage to lcov format"
inputs:
infile:
description: "go coverage input file"
required: true
required: false
default: coverage.out
outfile:
description: "lcov output file"
required: true
required: false
default: coverage.lcov
version:
description: "gcov2lcov version"
required: true
required: false
default: latest
working-directory:
description: "change working directory"
Expand Down

0 comments on commit 91f9b36

Please sign in to comment.