Skip to content

Commit

Permalink
chore: temporarily disable codecov GH action integration (#12928)
Browse files Browse the repository at this point in the history
  • Loading branch information
HuiSF authored Jan 30, 2024
1 parent 38c1d56 commit f1af101
Showing 1 changed file with 21 additions and 20 deletions.
41 changes: 21 additions & 20 deletions .github/workflows/callable-unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

0 comments on commit f1af101

Please sign in to comment.