Skip to content

Commit

Permalink
Migrate to codecov.io (#19)
Browse files Browse the repository at this point in the history
Signed-off-by: Juncheng Zhu <[email protected]>
  • Loading branch information
junczhu authored Jul 28, 2022
1 parent 3dfa291 commit c435938
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 27 deletions.
5 changes: 5 additions & 0 deletions .github/.codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
coverage:
status:
project:
default:
target: 89%
7 changes: 2 additions & 5 deletions .github/workflows/reusable-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,5 @@ jobs:
check-latest: true
- name: Run unit tests
run: make test
- name: Upload coverage report
uses: actions/upload-artifact@master
with:
name: notation-coverage-report-${{ github.sha }}
path: .cover/
- name: Upload coverage to codecov.io
uses: codecov/codecov-action@v3
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,4 @@
.vscode

# Custom
.cover/
.test/
coverage.txt
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ all: test

.PHONY: test
test: check-line-endings ## run unit tests
./scripts/test.sh
go test -race -v -coverprofile=coverage.txt -covermode=atomic ./...

.PHONY: clean
clean:
Expand Down
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
# notation-core-go

[![codecov](https://codecov.io/gh/notaryproject/notation-core-go/branch/main/graph/badge.svg)](https://codecov.io/gh/notaryproject/notation-core-go)

Contains support for Notary v2 signature envelope, and format specific implementation
19 changes: 0 additions & 19 deletions scripts/test.sh

This file was deleted.

0 comments on commit c435938

Please sign in to comment.