From f1af1015a85f751b4a1aa46d42495fb0ec139db5 Mon Sep 17 00:00:00 2001 From: Hui Zhao <10602282+HuiSF@users.noreply.github.com> Date: Tue, 30 Jan 2024 13:39:19 -0800 Subject: [PATCH] chore: temporarily disable codecov GH action integration (#12928) --- .github/workflows/callable-unit-tests.yml | 41 ++++++++++++----------- 1 file changed, 21 insertions(+), 20 deletions(-) diff --git a/.github/workflows/callable-unit-tests.yml b/.github/workflows/callable-unit-tests.yml index 44d91b67464..f83343c0cc6 100644 --- a/.github/workflows/callable-unit-tests.yml +++ b/.github/workflows/callable-unit-tests.yml @@ -25,23 +25,24 @@ jobs: env: TEST_PACKAGE: ${{ matrix.package.name }} run: npx lerna exec --scope $TEST_PACKAGE yarn test - - name: Check coverage report existence - id: check-report - env: - PACKAGE_PATH: ${{ matrix.package.path }} - run: | - if [ -f ./amplify-js/$PACKAGE_PATH/coverage/coverage-final.json ]; then - echo "SHOULD_UPLOAD_REPORT=true" >> $GITHUB_OUTPUT; - fi - - name: Get coverage report flag - if: steps.check-report.outputs.SHOULD_UPLOAD_REPORT == 'true' - env: - PACKAGE_PATH: ${{ matrix.package.path }} - id: split-path - run: echo "REPORT_FLAG=${PACKAGE_PATH##*/}" >> $GITHUB_OUTPUT - - name: Upload coverage report - if: steps.check-report.outputs.SHOULD_UPLOAD_REPORT == 'true' - uses: codecov/codecov-action@eaaf4bedf32dbdc6b720b63067d99c4d77d6047d - with: - files: ./amplify-js/${{ matrix.package.path }}/coverage/coverage-final.json - flags: ${{ steps.split-path.outputs.REPORT_FLAG }} + # disable temporarily + # - name: Check coverage report existence + # id: check-report + # env: + # PACKAGE_PATH: ${{ matrix.package.path }} + # run: | + # if [ -f ./amplify-js/$PACKAGE_PATH/coverage/coverage-final.json ]; then + # echo "SHOULD_UPLOAD_REPORT=true" >> $GITHUB_OUTPUT; + # fi + # - name: Get coverage report flag + # if: steps.check-report.outputs.SHOULD_UPLOAD_REPORT == 'true' + # env: + # PACKAGE_PATH: ${{ matrix.package.path }} + # id: split-path + # run: echo "REPORT_FLAG=${PACKAGE_PATH##*/}" >> $GITHUB_OUTPUT + # - name: Upload coverage report + # if: steps.check-report.outputs.SHOULD_UPLOAD_REPORT == 'true' + # uses: codecov/codecov-action@eaaf4bedf32dbdc6b720b63067d99c4d77d6047d + # with: + # files: ./amplify-js/${{ matrix.package.path }}/coverage/coverage-final.json + # flags: ${{ steps.split-path.outputs.REPORT_FLAG }}