DEV Community

Discussion on: Jest and the `--changedSince` flag in GitHub Actions CI

Collapse
 
monapasan profile image
Oleg Yarin • Edited

Thank Tierney for a great post. Very much appreciated!
Do you have a working example with this solution?
I couldn't bring it to work. With you example:

${{ github.event.pull_request.head.sha }}
Enter fullscreen mode Exit fullscreen mode

This can't be resolved in my actions. I used this instead:

git checkout ${GITHUB_REF##*/}
Enter fullscreen mode Exit fullscreen mode

But jest still behaves very weirdly. It still doesn't recognize any changes, even though there are certainly changes with master.

Collapse
 
bnb profile image
Tierney Cyren

Here's an example of where it worked - we've since moved past it to a different model, but this CI setup fully worked: github.com/nodejs/examples/pull/4