DEV Community

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

Collapse
 
edvinasbartkus profile image
Edvinas Bartkus

Great write up!
Switching between branches can be avoided since we can simply fetch and then use "origin/master":

- uses: actions/checkout@v2
- run: git fetch --no-tags --depth=1 origin master
...
- run: yarn test --changedSince=origin/master --coverage
Enter fullscreen mode Exit fullscreen mode