Skip to content

Commit d05188b

Browse files
authored
ci: fix codecov action issues (#928)
* fixed codecov action * ignore coverage local files * downgraded codecov to 4.4.0 * downgrade codecov action to 4.3.1 * pass through env * 4.4.0 again * 4.2.0 * 4.4.1 with cli 0.5.2 * down to 4.4.0 * cli as 0.4.0 * trying another way * upgraded to 4.4.1 again
1 parent 75395c6 commit d05188b

5 files changed

Lines changed: 10 additions & 829 deletions

File tree

.github/workflows/_test.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
name: "Unit Tests"
22

3-
on: workflow_call
3+
on:
4+
workflow_call:
5+
secrets:
6+
CODECOV_TOKEN:
7+
required: true
48

59
env:
610
CGO_ENABLED: 0

.github/workflows/pull_request.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ jobs:
1414
uses: ./.github/workflows/_golangci-lint.yml
1515
call-test:
1616
uses: ./.github/workflows/_test.yml
17+
secrets:
18+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN}}
1719
call-swagger-check:
1820
uses: ./.github/workflows/_swagger-check.yml
1921
call-styles-check:

.github/workflows/push.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ jobs:
1414
uses: ./.github/workflows/_golangci-lint.yml
1515
call-test:
1616
uses: ./.github/workflows/_test.yml
17+
secrets:
18+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN}}
1719
call-gorelease:
1820
needs: [call-lint, call-test]
1921
uses: ./.github/workflows/_gorelease.yml

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
/dev-data*
1313

1414
# Coverage data
15-
/coverage.out
15+
/coverage.*
1616

1717
# Dist files
1818
dist/

0 commit comments

Comments
 (0)