1234567891011121314151617181920212223242526272829303132333435363738394041 |
- name: 'Sentry Artifacts'
- description: 'Handles uploading coverage/test artifacts to codecov'
- inputs:
- files:
- description: 'Path to coverage file(s) - comma separated for multiple files'
- default: '.artifacts/*.coverage.xml'
- required: true
- test_result_files:
- description: 'Path to test result file(s) - comma separated for multiple files'
- default: '.artifacts/*.junit.xml'
- required: true
- type:
- description: 'The type of change (frontend, backend)'
- default: 'backend'
- required: false
- token:
- description: 'The codecov token'
- required: true
- commit_sha:
- description: 'The commit sha'
- required: true
- runs:
- using: 'composite'
- steps:
- - name: Download and Verify Codecov CLI
- shell: bash
- run: |
- ./.github/actions/artifacts/download_codecov_cli.py
- - name: Upload Coverage and Test Results
- continue-on-error: true
- shell: bash
- env:
- INPUT_TOKEN: ${{ inputs.token }}
- INPUT_COMMIT_SHA: ${{ inputs.commit_sha }}
- INPUT_TYPE: ${{ inputs.type }}
- INPUT_FILES: ${{ inputs.files }}
- INPUT_TEST_RESULT_FILES: ${{ inputs.test_result_files }}
- run: |
- ./.github/actions/artifacts/do_upload.py
|