Skip to content

Commit

Permalink
Merge pull request #327 from orhun/fix/codecov_upload
Browse files Browse the repository at this point in the history
Use codecov upload script instead of GitHub action
  • Loading branch information
fatihbaltaci authored Aug 8, 2024
2 parents 65d40e7 + 552f6a1 commit e2e7af2
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ jobs:
- name: Test
run: cd ddosify_engine && go test -coverpkg=./... -coverprofile=coverage.txt -parallel 1 -covermode=atomic -short ./... && go tool cover -func coverage.txt

- uses: codecov/codecov-action@v2
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: coverage.txt
name: codecov-ddosify # optional
fail_ci_if_error: true # optional (default = false)
verbose: true # optional (default = false)
- name: Upload reports to codecov
run: |
curl -Os https://uploader.codecov.io/latest/linux/codecov
chmod +x codecov
./codecov -t ${CODECOV_TOKEN} -f coverage.txt
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

0 comments on commit e2e7af2

Please sign in to comment.