Skip to content
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
21 changes: 21 additions & 0 deletions .github/workflows/cloud-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,27 @@ jobs:
steps:
- name: allowed message
run: echo "Allowed to run"
- name: check Github action bot comment
if: github.event_name == 'pull_request'
Copy link
Collaborator

@josvazg josvazg Mar 24, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

q: why this?
we do not want stats if we trigger manually?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is exactly how it was before, if we notice something is missing we can adjust it

uses: peter-evans/find-comment@v3
id: find-bot-comment
with:
issue-number: ${{ github.event.pull_request.number }}
comment-author: github-actions[bot]
body-includes: 'https://app.codecov.io/github/mongodb/mongodb-atlas-kubernetes/commit'
- name: edit comment if exists
if: github.event_name == 'pull_request' && steps.find-bot-comment.outputs.comment-id != ''
uses: peter-evans/create-or-update-comment@v4
with:
edit-mode: replace
comment-id: ${{ steps.find-bot-comment.outputs.comment-id }}
body: https://app.codecov.io/github/mongodb/mongodb-atlas-kubernetes/commit/${{ github.event.pull_request.head.sha }}
- name: comment PR
if: github.event_name == 'pull_request' && steps.find-bot-comment.outputs.comment-id == ''
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
gh pr comment ${{ github.event.pull_request.number }} -R mongodb/mongodb-atlas-kubernetes -b "https://app.codecov.io/github/mongodb/mongodb-atlas-kubernetes/commit/${{ github.event.pull_request.head.sha }}"

int-tests:
needs: allowed
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/test-e2e-gov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ jobs:
if: ${{ success() }}
uses: codecov/codecov-action@v5
with:
files: test/e2e/coverprofile.out
name: ${{ matrix.test }}
token: ${{ secrets.CODECOV_TOKEN }}
files: test/e2e/coverprofile.out
verbose: true
3 changes: 2 additions & 1 deletion .github/workflows/test-e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,7 @@ jobs:
if: ${{ success() }}
uses: codecov/codecov-action@v5
with:
files: test/e2e/coverprofile.out
name: ${{ matrix.test }}
token: ${{ secrets.CODECOV_TOKEN }}
files: test/e2e/coverprofile.out
verbose: true
1 change: 1 addition & 0 deletions .github/workflows/test-int.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ jobs:
uses: codecov/codecov-action@v5
with:
name: ${{ matrix.test }}
token: ${{ secrets.CODECOV_TOKEN }}
files: ${{ matrix.path }}/coverprofile.out
verbose: true

1 change: 1 addition & 0 deletions .github/workflows/test-unit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,6 @@ jobs:
uses: codecov/codecov-action@v5
with:
name: unit-tests
token: ${{ secrets.CODECOV_TOKEN }}
files: coverage.out
verbose: true