From 552f6a1afebc711d22b91a9e928a171f562e9367 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Orhun=20Parmaks=C4=B1z?= Date: Thu, 8 Aug 2024 09:10:18 +0300 Subject: [PATCH] Use codecov upload script instead of GitHub action --- .github/workflows/coverage.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 3d04dfa0..d6a841de 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -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 }}