Skip to content

Commit

Permalink
feat(ci): Use codecov for coverage reports
Browse files Browse the repository at this point in the history
  • Loading branch information
jonstacks committed Jan 13, 2025
1 parent 96ccc03 commit aa1125a
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/actions/changes/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ name: Action - Changes
description: "Detect changes in the repository"

outputs:
actions:
description: "If any part of the actions have changed"
value: ${{ steps.filter.outputs.actions }}
charts:
description: "If any part of Helm charts have changed"
value: ${{ steps.filter.outputs.charts }}
Expand Down Expand Up @@ -29,6 +32,9 @@ runs:
uses: dorny/[email protected]
with:
filters: |
actions:
- '.github/workflows/**'
- '.github/actions/**'
chartyaml:
- 'helm/ngrok-operator/Chart.yaml'
charts:
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ jobs:
contents: read
pull-requests: read
outputs:
actions: ${{ steps.changes.outputs.actions }}
charts: ${{ steps.changes.outputs.charts }}
chartyaml: ${{ steps.changes.outputs.chartyaml }}
go: ${{ steps.changes.outputs.go }}
Expand Down Expand Up @@ -98,6 +99,7 @@ jobs:
(github.event_name == 'push' && github.ref_name == 'main')
||
(
(needs.changes.outputs.actions == 'true') ||
(needs.changes.outputs.go == 'true') ||
(needs.changes.outputs.charts == 'true') ||
(needs.changes.outputs.chartyaml == 'true') ||
Expand All @@ -116,6 +118,11 @@ jobs:
# on contributor's forks
run-e2e: false
go-version: ${{ env.GO_VERSION }}
- if: github.repostiory == 'ngrok/ngrok-operator'
name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}

helm:
runs-on: ubuntu-latest
Expand Down

0 comments on commit aa1125a

Please sign in to comment.