Retries an Action step on failure. Determines if a failure is a flake based on the test output
Required Number of attempts to make before failing the step
Required The command to run
Optional Execution is considered a flake if any output line contains any of these lines as a substring. Note - if not specified, all failures are considered as real failures.
uses: oppia/retry@develop
with:
max_attempts: 2
substrings_indicating_flaky_execution: |
First flaky substring
Second flaky substring
command: ./run_tests.sh
npm install
to install dependencies.
npm run prepare
to build dist/index.js.
npm test
to run tests.