Skip to content

Commit

Permalink
add yarn test --coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
zhongnansu committed Jun 24, 2021
1 parent c36bd3e commit 12b6e66
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ env:
PLUGIN_NAME: reportsDashboards
OPENSEARCH_VERSION: '1.0'
OPENSEARCH_PLUGIN_VERSION: 1.0.0.0-rc1
CODECOV_TOKEN: '50c9356f-775f-472c-bcfb-2094fc71819c'

jobs:
build:
Expand Down Expand Up @@ -50,14 +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: ${{ env.CODECOV_TOKEN }}
token: ${{ secrets.CODECOV_TOKEN }}

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

on: [push, pull_request]

env:
CODECOV_TOKEN: '50c9356f-775f-472c-bcfb-2094fc71819c'

jobs:
build:
Expand Down Expand Up @@ -62,7 +60,7 @@ jobs:
with:
flags: reports-scheduler
directory: reports-scheduler/
token: ${{ env.CODECOV_TOKEN }}
token: ${{ secrets.CODECOV_TOKEN }}

- name: Create Artifact Path
run: |
Expand Down

0 comments on commit 12b6e66

Please sign in to comment.