From 2b82e384c517c45253ebe9f180c81780c3118742 Mon Sep 17 00:00:00 2001 From: "Ali(Ako) Hosseini" Date: Sun, 27 Mar 2022 11:10:43 +0430 Subject: [PATCH 1/4] ci/ run tests for merge to master brnach --- .github/workflows/codecov_push_release.yml | 30 ++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/codecov_push_release.yml diff --git a/.github/workflows/codecov_push_release.yml b/.github/workflows/codecov_push_release.yml new file mode 100644 index 000000000000..b1156a90bc12 --- /dev/null +++ b/.github/workflows/codecov_push_release.yml @@ -0,0 +1,30 @@ +name: Codecov release Workflow +on: + push: + branches: + - master +jobs: + build: + name: Build + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@master + - name: Use Node.js 14.x + uses: actions/setup-node@v1 + with: + node-version: 14.x + - name: install, bootstrap and make test coverage + run: | + npm install + npm run bootstrap + npm run build + npm run test:jest + + - name: Upload coverage to Codecov + uses: codecov/codecov-action@v2 + with: + directory: ./coverage + fail_ci_if_error: true + files: ./coverage/lcov.info + name: codecov-umbrella + verbose: true From c86c273a3354e305bea44569e1a0966f4db50486 Mon Sep 17 00:00:00 2001 From: "Ali(Ako) Hosseini" Date: Sun, 27 Mar 2022 11:39:22 +0430 Subject: [PATCH 2/4] ci/ add criteria to run coverage reporter on push to master --- .github/workflows/codecov.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/codecov.yml b/.github/workflows/codecov.yml index 03b5023f595e..c35011d5ab6f 100644 --- a/.github/workflows/codecov.yml +++ b/.github/workflows/codecov.yml @@ -1,5 +1,11 @@ name: Codecov Workflow -on: [ "pull_request" ] +on: + pull_request: + branches: + - * + push: + branches: + - master jobs: build: name: Build From 2392984b9ae1d22a6fb49fbd7a640668c2dddc83 Mon Sep 17 00:00:00 2001 From: "Ali(Ako) Hosseini" Date: Sun, 27 Mar 2022 11:40:47 +0430 Subject: [PATCH 3/4] ci/ remove redundant config file --- .github/workflows/codecov_push_release.yml | 30 ---------------------- 1 file changed, 30 deletions(-) delete mode 100644 .github/workflows/codecov_push_release.yml diff --git a/.github/workflows/codecov_push_release.yml b/.github/workflows/codecov_push_release.yml deleted file mode 100644 index b1156a90bc12..000000000000 --- a/.github/workflows/codecov_push_release.yml +++ /dev/null @@ -1,30 +0,0 @@ -name: Codecov release Workflow -on: - push: - branches: - - master -jobs: - build: - name: Build - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@master - - name: Use Node.js 14.x - uses: actions/setup-node@v1 - with: - node-version: 14.x - - name: install, bootstrap and make test coverage - run: | - npm install - npm run bootstrap - npm run build - npm run test:jest - - - name: Upload coverage to Codecov - uses: codecov/codecov-action@v2 - with: - directory: ./coverage - fail_ci_if_error: true - files: ./coverage/lcov.info - name: codecov-umbrella - verbose: true From 4094ff4d117be27f8e70ee865e1f4a9e1a088b78 Mon Sep 17 00:00:00 2001 From: "Ali(Ako) Hosseini" Date: Sun, 27 Mar 2022 11:59:29 +0430 Subject: [PATCH 4/4] ci/ update pull request config for the action --- .github/workflows/codecov.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/codecov.yml b/.github/workflows/codecov.yml index c35011d5ab6f..9429f0127d93 100644 --- a/.github/workflows/codecov.yml +++ b/.github/workflows/codecov.yml @@ -2,7 +2,7 @@ name: Codecov Workflow on: pull_request: branches: - - * + - '**' push: branches: - master