From 5c92c3c3a7ca78901f9d70493c22835dc25b651d Mon Sep 17 00:00:00 2001 From: Zhongnan Su Date: Thu, 21 Jan 2021 17:39:32 -0800 Subject: [PATCH 1/4] add codecov --- .../workflows/kibana-reports-test-and-build-workflow.yml | 2 ++ .../reports-scheduler-test-and-build-workflow.yml | 7 +++++++ 2 files changed, 9 insertions(+) diff --git a/.github/workflows/kibana-reports-test-and-build-workflow.yml b/.github/workflows/kibana-reports-test-and-build-workflow.yml index 3bb0e4d9..c2c08c63 100644 --- a/.github/workflows/kibana-reports-test-and-build-workflow.yml +++ b/.github/workflows/kibana-reports-test-and-build-workflow.yml @@ -53,6 +53,8 @@ jobs: - name: Uploads coverage uses: codecov/codecov-action@v1 with: + flags: frontend + directory: kibana/plugins/ token: ${{ secrets.CODECOV_TOKEN }} - name: Build Artifact diff --git a/.github/workflows/reports-scheduler-test-and-build-workflow.yml b/.github/workflows/reports-scheduler-test-and-build-workflow.yml index 0c82b42e..3cea8db6 100644 --- a/.github/workflows/reports-scheduler-test-and-build-workflow.yml +++ b/.github/workflows/reports-scheduler-test-and-build-workflow.yml @@ -19,6 +19,13 @@ jobs: cd reports-scheduler ./gradlew build + - name: Uploads coverage + uses: codecov/codecov-action@v1 + with: + flags: backend + directory: reports-scheduler/ + token: ${{ secrets.CODECOV_TOKEN }} + - name: Create Artifact Path run: | mkdir -p reports-scheduler-builds From 0b803cf7a7e9202d3f1327beecb0d9ca66b9ee28 Mon Sep 17 00:00:00 2001 From: Zhongnan Su Date: Thu, 21 Jan 2021 17:56:41 -0800 Subject: [PATCH 2/4] add codecov 2 --- .github/workflows/kibana-reports-test-and-build-workflow.yml | 2 +- .github/workflows/reports-scheduler-test-and-build-workflow.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/kibana-reports-test-and-build-workflow.yml b/.github/workflows/kibana-reports-test-and-build-workflow.yml index c2c08c63..988e7785 100644 --- a/.github/workflows/kibana-reports-test-and-build-workflow.yml +++ b/.github/workflows/kibana-reports-test-and-build-workflow.yml @@ -53,7 +53,7 @@ jobs: - name: Uploads coverage uses: codecov/codecov-action@v1 with: - flags: frontend + flags: Kibana plugin directory: kibana/plugins/ token: ${{ secrets.CODECOV_TOKEN }} diff --git a/.github/workflows/reports-scheduler-test-and-build-workflow.yml b/.github/workflows/reports-scheduler-test-and-build-workflow.yml index 3cea8db6..111020b2 100644 --- a/.github/workflows/reports-scheduler-test-and-build-workflow.yml +++ b/.github/workflows/reports-scheduler-test-and-build-workflow.yml @@ -22,7 +22,7 @@ jobs: - name: Uploads coverage uses: codecov/codecov-action@v1 with: - flags: backend + flags: ES plugin directory: reports-scheduler/ token: ${{ secrets.CODECOV_TOKEN }} From 85de32ea5ca31283d68b4dcc7cbb7a2d241d89d0 Mon Sep 17 00:00:00 2001 From: Zhongnan Su Date: Thu, 21 Jan 2021 17:57:59 -0800 Subject: [PATCH 3/4] add codecov 3 --- .github/workflows/kibana-reports-test-and-build-workflow.yml | 2 +- .github/workflows/reports-scheduler-test-and-build-workflow.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/kibana-reports-test-and-build-workflow.yml b/.github/workflows/kibana-reports-test-and-build-workflow.yml index 988e7785..2d79c64e 100644 --- a/.github/workflows/kibana-reports-test-and-build-workflow.yml +++ b/.github/workflows/kibana-reports-test-and-build-workflow.yml @@ -50,7 +50,7 @@ jobs: max_attempts: 3 command: cd kibana/plugins/${{ env.PLUGIN_NAME }}; yarn test --coverage - - name: Uploads coverage + - name: Upload coverage uses: codecov/codecov-action@v1 with: flags: Kibana plugin diff --git a/.github/workflows/reports-scheduler-test-and-build-workflow.yml b/.github/workflows/reports-scheduler-test-and-build-workflow.yml index 111020b2..9169bea1 100644 --- a/.github/workflows/reports-scheduler-test-and-build-workflow.yml +++ b/.github/workflows/reports-scheduler-test-and-build-workflow.yml @@ -19,7 +19,7 @@ jobs: cd reports-scheduler ./gradlew build - - name: Uploads coverage + - name: Upload coverage uses: codecov/codecov-action@v1 with: flags: ES plugin From 5f4b1f9a28394574b7745e7f08499d6d2ccf50ae Mon Sep 17 00:00:00 2001 From: Zhongnan Su Date: Thu, 21 Jan 2021 18:06:03 -0800 Subject: [PATCH 4/4] change naming --- .github/workflows/kibana-reports-test-and-build-workflow.yml | 2 +- .github/workflows/reports-scheduler-test-and-build-workflow.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/kibana-reports-test-and-build-workflow.yml b/.github/workflows/kibana-reports-test-and-build-workflow.yml index 2d79c64e..c580e6ed 100644 --- a/.github/workflows/kibana-reports-test-and-build-workflow.yml +++ b/.github/workflows/kibana-reports-test-and-build-workflow.yml @@ -53,7 +53,7 @@ jobs: - name: Upload coverage uses: codecov/codecov-action@v1 with: - flags: Kibana plugin + flags: Kibana-reports directory: kibana/plugins/ token: ${{ secrets.CODECOV_TOKEN }} diff --git a/.github/workflows/reports-scheduler-test-and-build-workflow.yml b/.github/workflows/reports-scheduler-test-and-build-workflow.yml index 9169bea1..f61dbdea 100644 --- a/.github/workflows/reports-scheduler-test-and-build-workflow.yml +++ b/.github/workflows/reports-scheduler-test-and-build-workflow.yml @@ -22,7 +22,7 @@ jobs: - name: Upload coverage uses: codecov/codecov-action@v1 with: - flags: ES plugin + flags: reports-scheduler directory: reports-scheduler/ token: ${{ secrets.CODECOV_TOKEN }}