Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: temporarily disable codecov GH action integration #12928

Merged
merged 1 commit into from
Jan 30, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 }}
Loading