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

Fix codecov uploading #294

Merged
merged 1 commit into from
Dec 11, 2024
Merged
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
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
Loading