Skip to content

Commit

Permalink
Fix codecov uploading
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas Farr <[email protected]>
  • Loading branch information
Xtansia committed Dec 11, 2024
1 parent 0f27696 commit 7c4dea4
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ name: Tests
on:
push:
branches-ignore:
- 'dependabot/**'
- "dependabot/**"
pull_request:
schedule:
- cron: '0 8 * * *'
- cron: "0 8 * * *"

permissions:
id-token: write
Expand Down Expand Up @@ -37,8 +37,8 @@ jobs:
if: matrix.os == 'windows-latest'
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '17'
distribution: "temurin"
java-version: "17"

- name: Run OpenSearch
id: opensearch
Expand All @@ -55,11 +55,11 @@ jobs:
OPENSEARCH_PASSWORD: ${{ steps.opensearch.outputs.admin_password }}

- name: Upload Coverage Data
uses: codecov/codecov-action@v4
uses: codecov/codecov-action@v5
with:
files: ./client/test_results/opensearch.lcov
flags: unit
use_oidc: true
token: ${{ secrets.CODECOV_TOKEN }}

- name: Save OpenSearch logs
if: failure()
Expand Down Expand Up @@ -113,11 +113,11 @@ jobs:
OPENSEARCH_URL: ${{ steps.opensearch.outputs.opensearch_url }}
OPENSEARCH_PASSWORD: ${{ steps.opensearch.outputs.admin_password }}

- uses: codecov/codecov-action@v4
- uses: codecov/codecov-action@v5
with:
files: ./client/test_results/opensearch.lcov
flags: integration
use_oidc: true
token: ${{ secrets.CODECOV_TOKEN }}

- name: Save OpenSearch logs
if: failure()
Expand All @@ -134,9 +134,9 @@ jobs:
fail-fast: false
matrix:
include:
- { opensearch_ref: '1.x', java_version: '11' }
- { opensearch_ref: '2.x', java_version: '17' }
- { opensearch_ref: 'main', java_version: '21' }
- { opensearch_ref: "1.x", java_version: "11" }
- { opensearch_ref: "2.x", java_version: "17" }
- { opensearch_ref: "main", java_version: "21" }
steps:
- name: GitHub App token
id: github_app_token
Expand Down Expand Up @@ -178,7 +178,7 @@ jobs:
- name: Install Java
uses: actions/setup-java@v3
with:
distribution: 'temurin'
distribution: "temurin"
java-version: ${{ matrix.java_version }}

- name: Build OpenSearch
Expand Down Expand Up @@ -208,12 +208,12 @@ jobs:
OPENSEARCH_URL: ${{ steps.opensearch.outputs.url }}
OPENSEARCH_PASSWORD: ${{ steps.opensearch.outputs.admin_password }}

- uses: codecov/codecov-action@v4
- uses: codecov/codecov-action@v5
if: github.event_name != 'schedule'
with:
files: ./client/test_results/opensearch.lcov
flags: integration
use_oidc: true
token: ${{ secrets.CODECOV_TOKEN }}

- name: Save OpenSearch logs
if: failure()
Expand Down

0 comments on commit 7c4dea4

Please sign in to comment.