From 41a0e689d9956d44d36027befd63c47a12025b45 Mon Sep 17 00:00:00 2001 From: HarrisChu <1726587+HarrisChu@users.noreply.github.com> Date: Thu, 14 Oct 2021 16:12:04 +0800 Subject: [PATCH 1/2] change codecov uploader --- .github/workflows/nightly.yml | 5 ++++- .github/workflows/pull_request.yml | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index f477bb6d05b..0839d44bea6 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -149,7 +149,10 @@ jobs: - name: coverage run: | ~/.local/bin/fastcov -d build -l -o fastcov.info -p --exclude /usr/include --exclude=/opt/vesoft --exclude scanner.lex - bash <(curl -s https://codecov.io/bash) -Z -f fastcov.info + - uses: codecov/codecov-action@v2 + with: + files: fastcov.info + fail_ci_if_error: true - name: Upload logs uses: actions/upload-artifact@v2 if: ${{ failure() }} diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index 6f76ccba573..729a1a5ed72 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -166,7 +166,10 @@ jobs: if: ${{ matrix.compiler == 'gcc-9.2' && matrix.os == 'ubuntu2004' }} run: | ~/.local/bin/fastcov -d build -l -o fastcov.info -p --exclude /usr/include --exclude=/opt/vesoft --exclude scanner.lex - bash <(curl -s https://codecov.io/bash) -Z -f fastcov.info + - uses: codecov/codecov-action@v2 + with: + files: fastcov.info + fail_ci_if_error: true - name: Sanitizer if: ${{ always() }} run: | From 4124c56d231ef9ce0e2f8ba58458dc3cbab3cace Mon Sep 17 00:00:00 2001 From: HarrisChu <1726587+HarrisChu@users.noreply.github.com> Date: Fri, 15 Oct 2021 09:25:33 +0800 Subject: [PATCH 2/2] change ail_ci_if_error --- .github/workflows/nightly.yml | 2 +- .github/workflows/pull_request.yml | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index 0839d44bea6..8d16a94dea3 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -152,7 +152,7 @@ jobs: - uses: codecov/codecov-action@v2 with: files: fastcov.info - fail_ci_if_error: true + fail_ci_if_error: false - name: Upload logs uses: actions/upload-artifact@v2 if: ${{ failure() }} diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index 729a1a5ed72..13bff98696c 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -167,9 +167,10 @@ jobs: run: | ~/.local/bin/fastcov -d build -l -o fastcov.info -p --exclude /usr/include --exclude=/opt/vesoft --exclude scanner.lex - uses: codecov/codecov-action@v2 + if: ${{ matrix.compiler == 'gcc-9.2' && matrix.os == 'ubuntu2004' }} with: files: fastcov.info - fail_ci_if_error: true + fail_ci_if_error: false - name: Sanitizer if: ${{ always() }} run: |