Skip to content

Commit

Permalink
Migrate CodeCov upload config (#1286)
Browse files Browse the repository at this point in the history
- Changes Codecov configuration to use new properties
- Don't attempt to run optional steps for PRs from forks

Resolves #1244
{patch}

Signed-off-by: Esta Nagy <[email protected]>
  • Loading branch information
nagyesta authored Dec 25, 2024
1 parent c759b23 commit 8728523
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 12 deletions.
1 change: 1 addition & 0 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,4 +73,5 @@ jobs:
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@48ab28a6f5dbc2a99bf1e0131198dd8f1df78169 # v3.28.0
- name: Check dependencies with Gradle
if: ${{ github.repository_owner == 'nagyesta' }}
run: ./gradlew ossIndexAudit -PossIndexUsername=${{ secrets.OSS_INDEX_USER }} -PossIndexPassword=${{ secrets.OSS_INDEX_PASSWORD }}
24 changes: 15 additions & 9 deletions .github/workflows/gradle-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,20 +78,26 @@ jobs:
if: ${{ github.repository_owner == 'nagyesta' }}
uses: codecov/codecov-action@1e68e06f1dbfde0e4cefc87efeba9e4643565303 # v5.1.2
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./lowkey-vault-app/build/reports/jacoco/report.xml
flags: app
token: ${{ secrets.CODECOV_TOKEN }}
files: ./lowkey-vault-app/build/reports/jacoco/report.xml
disable_search: true
flags: app
fail_ci_if_error: false
- name: Upload coverage to Codecov - Client
if: ${{ github.repository_owner == 'nagyesta' }}
uses: codecov/codecov-action@1e68e06f1dbfde0e4cefc87efeba9e4643565303 # v5.1.2
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./lowkey-vault-client/build/reports/jacoco/report.xml
flags: client
token: ${{ secrets.CODECOV_TOKEN }}
files: ./lowkey-vault-client/build/reports/jacoco/report.xml
disable_search: true
flags: client
fail_ci_if_error: false
- name: Upload coverage to Codecov - Testcontainers
if: ${{ github.repository_owner == 'nagyesta' }}
uses: codecov/codecov-action@1e68e06f1dbfde0e4cefc87efeba9e4643565303 # v5.1.2
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./lowkey-vault-testcontainers/build/reports/jacoco/report.xml
flags: testcontainers
token: ${{ secrets.CODECOV_TOKEN }}
files: ./lowkey-vault-testcontainers/build/reports/jacoco/report.xml
disable_search: true
flags: testcontainers
fail_ci_if_error: false
12 changes: 9 additions & 3 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,17 +84,23 @@ jobs:
uses: codecov/codecov-action@1e68e06f1dbfde0e4cefc87efeba9e4643565303 # v5.1.2
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./lowkey-vault-app/build/reports/jacoco/report.xml
files: ./lowkey-vault-app/build/reports/jacoco/report.xml
disable_search: true
flags: app
fail_ci_if_error: false
- name: Upload coverage to Codecov - Client
uses: codecov/codecov-action@1e68e06f1dbfde0e4cefc87efeba9e4643565303 # v5.1.2
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./lowkey-vault-client/build/reports/jacoco/report.xml
files: ./lowkey-vault-client/build/reports/jacoco/report.xml
disable_search: true
flags: client
fail_ci_if_error: false
- name: Upload coverage to Codecov - Testcontainers
uses: codecov/codecov-action@1e68e06f1dbfde0e4cefc87efeba9e4643565303 # v5.1.2
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./lowkey-vault-testcontainers/build/reports/jacoco/report.xml
files: ./lowkey-vault-testcontainers/build/reports/jacoco/report.xml
disable_search: true
flags: testcontainers
fail_ci_if_error: false

0 comments on commit 8728523

Please sign in to comment.