Skip to content

Commit

Permalink
ci: fix codecov action issues (go-shiori#928)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
fmartingr authored Jun 3, 2024
1 parent 75395c6 commit d05188b
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 829 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/_test.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
name: "Unit Tests"

on: workflow_call
on:
workflow_call:
secrets:
CODECOV_TOKEN:
required: true

env:
CGO_ENABLED: 0
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ jobs:
uses: ./.github/workflows/_golangci-lint.yml
call-test:
uses: ./.github/workflows/_test.yml
secrets:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN}}
call-swagger-check:
uses: ./.github/workflows/_swagger-check.yml
call-styles-check:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ jobs:
uses: ./.github/workflows/_golangci-lint.yml
call-test:
uses: ./.github/workflows/_test.yml
secrets:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN}}
call-gorelease:
needs: [call-lint, call-test]
uses: ./.github/workflows/_gorelease.yml
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
/dev-data*

# Coverage data
/coverage.out
/coverage.*

# Dist files
dist/
Expand Down
Loading

0 comments on commit d05188b

Please sign in to comment.