Skip to content

Commit

Permalink
codecov/codecov-action@v4
Browse files Browse the repository at this point in the history
  • Loading branch information
oliver006 committed Sep 9, 2024
1 parent 076f7a0 commit ad45cec
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 15 deletions.
13 changes: 6 additions & 7 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,12 @@ jobs:
make test
- name: Upload coverage to Codecov
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
run: |
curl -Os https://uploader.codecov.io/latest/linux/codecov
chmod +x codecov
./codecov -t $CODECOV_TOKEN -f coverage.txt
uses: codecov/codecov-action@v4
with:
fail_ci_if_error: true # optional (default = false)
files: ./coverage.txt
token: ${{ secrets.CODECOV_TOKEN }} # required
verbose: true

- name: Upload coverage to Coveralls
uses: coverallsapp/github-action@v2
Expand Down
8 changes: 0 additions & 8 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -68,14 +68,6 @@ mixin:
$(MAKE) all && \
cd ../../

.PHONY: upload-coverage
upload-coverage:
go install github.com/mattn/[email protected]
which goveralls
echo $PATH
/home/runner/go/bin/goveralls -coverprofile=coverage.txt -service=drone.io



BUILD_DT:=$(shell date +%F-%T)
GO_LDFLAGS:="-s -w -extldflags \"-static\" -X main.BuildVersion=${DRONE_TAG} -X main.BuildCommitSha=${DRONE_COMMIT_SHA} -X main.BuildDate=$(BUILD_DT)"
Expand Down

0 comments on commit ad45cec

Please sign in to comment.