From 12b6e66a0149d3486196d42fe2ec39738d1f856f Mon Sep 17 00:00:00 2001 From: Zhongnan Su Date: Wed, 23 Jun 2021 14:50:41 -0700 Subject: [PATCH] add yarn test --coverage --- .../workflows/dashboards-reports-test-and-build-workflow.yml | 5 ++--- .../workflows/reports-scheduler-test-and-build-workflow.yml | 4 +--- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/.github/workflows/dashboards-reports-test-and-build-workflow.yml b/.github/workflows/dashboards-reports-test-and-build-workflow.yml index 6e1ad9dc..fe51bf88 100644 --- a/.github/workflows/dashboards-reports-test-and-build-workflow.yml +++ b/.github/workflows/dashboards-reports-test-and-build-workflow.yml @@ -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: @@ -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: | diff --git a/.github/workflows/reports-scheduler-test-and-build-workflow.yml b/.github/workflows/reports-scheduler-test-and-build-workflow.yml index 6f86251e..1785064c 100644 --- a/.github/workflows/reports-scheduler-test-and-build-workflow.yml +++ b/.github/workflows/reports-scheduler-test-and-build-workflow.yml @@ -2,8 +2,6 @@ name: Test and Build Reports Scheduler on: [push, pull_request] -env: - CODECOV_TOKEN: '50c9356f-775f-472c-bcfb-2094fc71819c' jobs: build: @@ -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: |