Skip to content

Commit

Permalink
Add code cov back (opensearch-project#98)
Browse files Browse the repository at this point in the history
Signed-off-by: Zhongnan Su <[email protected]>
  • Loading branch information
zhongnansu authored Jun 24, 2021
1 parent e54a12c commit 1cf5535
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,14 @@ jobs:
with:
timeout_minutes: 30
max_attempts: 3
command: cd OpenSearch-Dashboards/plugins/${{ env.PLUGIN_NAME }}; yarn test
command: cd OpenSearch-Dashboards/plugins/${{ env.PLUGIN_NAME }}; yarn test --coverage

- name: Upload coverage
uses: codecov/codecov-action@v1
with:
flags: dashboards-reports
directory: OpenSearch-Dashboards/plugins/
token: ${{ secrets.CODECOV_TOKEN }}

- name: Build Artifact
run: |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ name: Test and Build Reports Scheduler

on: [push, pull_request]


jobs:
build:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -54,6 +55,13 @@ jobs:
cd reports-scheduler
./gradlew build -Dopensearch.version=1.0.0-rc1
- name: Upload coverage
uses: codecov/codecov-action@v1
with:
flags: reports-scheduler
directory: reports-scheduler/
token: ${{ secrets.CODECOV_TOKEN }}

- name: Create Artifact Path
run: |
mkdir -p reports-scheduler-builds
Expand Down

0 comments on commit 1cf5535

Please sign in to comment.