Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(ci): Use codecov for coverage reports #571

Merged
merged 1 commit into from
Jan 13, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.repository == '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
Loading