Skip to content

Commit

Permalink
Migrate to codecov.io (#266)
Browse files Browse the repository at this point in the history
  • Loading branch information
junczhu authored Jul 27, 2022
1 parent a502103 commit 9280708
Show file tree
Hide file tree
Showing 6 changed files with 11 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: 70%
7 changes: 2 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,5 @@ jobs:
run: make build
- 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 @@ -4,6 +4,5 @@
# Custom
bin/
vendor/
.cover/
.test/
coverage.txt
dist/
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ build: $(addprefix bin/,$(COMMANDS)) ## builds binaries

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

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

[![codecov](https://codecov.io/gh/notatryproject/notation/branch/main/graph/badge.svg)](https://codecov.io/gh/notatryproject/notation)

Notation is a project to add signatures as standard items in the registry ecosystem, and to build a set of simple tooling for signing and verifying these signatures. This should be viewed as similar security to checking git commit signatures, although the signatures are generic and can be used for additional purposes. Notation is an implementation of the [Notary V2 specifications][notaryv2-specs].

## Table of Contents
Expand Down
19 changes: 0 additions & 19 deletions scripts/test.sh

This file was deleted.

0 comments on commit 9280708

Please sign in to comment.