Skip to content

Commit

Permalink
Merge pull request #34 from rainforestapp/pp/fix-33
Browse files Browse the repository at this point in the history
Fix typo in `workflow_call` example
  • Loading branch information
magni- authored Mar 31, 2023
2 parents 1a134f3 + 461f43b commit ed7943a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,13 +119,13 @@ If no `dry_run` parameter is passed in, the run will be started in Rainforest.
## Rerunning failed tests
If your Rainforest run fails due to a ["non-bug"](https://rainforest.engineering/2021-01-20-shipping-faster-orb/) (your testing environment might have had a hiccup, or a test might have needed to be tweaked, etc), then rather than make code changes and then run your full testing suite once more, you'll instead want to rerun just the tests that failed. The Rainforest QA GitHub Action uses GitHub [caching](https://docs.github.com/en/actions/advanced-guides/caching-dependencies-to-speed-up-workflows) to know when a workflow is [being rerun](https://docs.github.com/en/actions/managing-workflow-runs/re-running-workflows-and-jobs). It will then automatically rerun only the tests which failed in the previous run.

## Running multiple Rainforest runs from a single workflow using `worklow_call`
## Running multiple Rainforest runs from a single workflow using `workflow_call`
The Rainforest QA GitHub Action cannot detect on its own when it is being called multiple times in a single workflow through an intermediary reusable workflow. This means that the second invocation will attempt to rerun the run created by the first invocation, which will fail if that run has no failed tests to rerun. In order to avoid this situation, set the `cache_key` parameter to a distinct value in each invocation:

```yml
# reusable workflow
on:
worklow_call:
workflow_call:
inputs:
cache_key:
type: string
Expand Down

0 comments on commit ed7943a

Please sign in to comment.