Skip to content

Commit

Permalink
Migrate to codecov.io (oras-project#450)
Browse files Browse the repository at this point in the history
Signed-off-by: Juncheng Zhu <[email protected]>
  • Loading branch information
junczhu authored Jul 27, 2022
1 parent 60c143a commit a976297
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 43 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: 60%
8 changes: 2 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,5 @@ jobs:
run: make test
- name: Check Version
run: bin/linux/amd64/oras version
- name: Upload Coverage Report
uses: actions/upload-artifact@master
with:
name: oras-coverage-report-${{ github.sha }}
path: .cover/
if: always()
- name: Upload coverage to codecov.io
uses: codecov/codecov-action@v3
4 changes: 1 addition & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,7 @@ debug
.idea

# Custom
.cover/
.test/
hello.txt
coverage.txt
bin/
dist/
*.tar.gz
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ LDFLAGS += -X $(PROJECT_PKG)/internal/version.GitTreeState=${GIT_DIRTY}

.PHONY: test
test: vendor check-encoding
./scripts/test.sh
go test -race -v -coverprofile=coverage.txt -covermode=atomic ./...

.PHONY: covhtml
covhtml:
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# ORAS CLI

[![Build Status](https://github.com/oras-project/oras/actions/workflows/build.yml/badge.svg?event=push)](https://github.com/oras-project/oras/actions/workflows/build.yml?query=workflow%3Abuild+event%3Apush)
[![codecov](https://codecov.io/gh/oras-project/oras/branch/main/graph/badge.svg)](https://codecov.io/gh/oras-project/oras)


![ORAS](https://github.com/oras-project/oras-www/raw/main/docs/assets/images/oras.png)
Expand Down
33 changes: 0 additions & 33 deletions scripts/test.sh

This file was deleted.

0 comments on commit a976297

Please sign in to comment.