From 7b104364aec8d64214b02022941e92f4037d4de9 Mon Sep 17 00:00:00 2001 From: Nayana-Nagaraj Date: Tue, 2 Jan 2024 21:54:15 +0530 Subject: [PATCH 1/4] Create code_cov.yml --- .github/workflows/code_cov.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/code_cov.yml diff --git a/.github/workflows/code_cov.yml b/.github/workflows/code_cov.yml new file mode 100644 index 0000000..943e534 --- /dev/null +++ b/.github/workflows/code_cov.yml @@ -0,0 +1,28 @@ +# This is a basic workflow to help you get started with Actions + +name: Code_Cov + +on: + pull_request: + + + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + +# A workflow run is made up of one or more jobs that can run sequentially or in parallel +jobs: + # This workflow contains a single job called "build" + build: + # The type of runner that the job will run on + runs-on: ubuntu-latest + + # Steps represent a sequence of tasks that will be executed as part of the job + steps: + # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it + - uses: actions/checkout@v3 + + - name: Upload coverage reports to Codecov + uses: codecov/codecov-action@v3 + env: + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} + From 85b90a8665c21c5fb1a1a02929ef14c22849d622 Mon Sep 17 00:00:00 2001 From: Nayana-Nagaraj Date: Tue, 2 Jan 2024 22:08:39 +0530 Subject: [PATCH 2/4] Update code_cov.yml --- .github/workflows/code_cov.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/code_cov.yml b/.github/workflows/code_cov.yml index 943e534..8f7632c 100644 --- a/.github/workflows/code_cov.yml +++ b/.github/workflows/code_cov.yml @@ -25,4 +25,9 @@ jobs: uses: codecov/codecov-action@v3 env: CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} + - name: generate + run: | + curl -Os https://uploader.codecov.io/latest/windows/codecov + chmod +x codecov + ./codecov -t ${CODECOV_TOKEN} From b2a7a19ce1d44a754329758a12ae6cfe07d1c8ef Mon Sep 17 00:00:00 2001 From: Nayana-Nagaraj Date: Tue, 2 Jan 2024 22:10:39 +0530 Subject: [PATCH 3/4] Update code_cov.yml --- .github/workflows/code_cov.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/code_cov.yml b/.github/workflows/code_cov.yml index 8f7632c..490fa8f 100644 --- a/.github/workflows/code_cov.yml +++ b/.github/workflows/code_cov.yml @@ -29,5 +29,5 @@ jobs: run: | curl -Os https://uploader.codecov.io/latest/windows/codecov chmod +x codecov - ./codecov -t ${CODECOV_TOKEN} + ./codecov -t ${{ secrets.CODECOV_TOKEN }}} From 7cb042f837b533eb59c2ad3b8179fa6e6c37808e Mon Sep 17 00:00:00 2001 From: Nayana-Nagaraj Date: Tue, 2 Jan 2024 22:15:41 +0530 Subject: [PATCH 4/4] Update code_cov.yml --- .github/workflows/code_cov.yml | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/.github/workflows/code_cov.yml b/.github/workflows/code_cov.yml index 490fa8f..ea7d048 100644 --- a/.github/workflows/code_cov.yml +++ b/.github/workflows/code_cov.yml @@ -20,14 +20,8 @@ jobs: steps: # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - uses: actions/checkout@v3 - - - name: Upload coverage reports to Codecov - uses: codecov/codecov-action@v3 - env: - CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} - - name: generate - run: | - curl -Os https://uploader.codecov.io/latest/windows/codecov - chmod +x codecov - ./codecov -t ${{ secrets.CODECOV_TOKEN }}} + - uses: actions/checkout@master + - uses: codecov/codecov-action@v3 + with: + token: ${{ secrets.CODECOV_TOKEN }}