feat: Update alternative run examples to be interactive #1529
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
See codacy/codacy-coverage-reporter#419
👀 Live preview
https://feat-interactive-alternative-run-ex--docs-codacy.netlify.app/coverage-reporter/alternative-ways-of-running-coverage-reporter/#bash-script
❗Important
Reply to and close codacy/codacy-coverage-reporter#419 after deploying this.
To build a Docker image and test the command
mkdir /path/to/dir
, and place in it the 2 files below (Dockerfile
andtest-upload.sh
). You'll also need a sample coverage file (not included here).Dockerfile
, update theWORKDIR /path/to/dir
line with the actual path to your new directory.test-upload.sh
, update the./coverage.xml
path with the actual path to a test coverage file.cd /path/to/dir
.test-upload
image:docker build -t test-upload .
.CODACY_PROJECT_TOKEN
, run the new imagedocker run --env CODACY_PROJECT_TOKEN=<your-token> test-upload
Dockerfile
test-upload.sh
For more context:
https://github.com/codacy-docs/sandbox/blob/nico-onboarding/Dockerfile
https://github.com/codacy-docs/sandbox/blob/nico-onboarding/test-upload.sh