Skip to content

Commit 58ebe9a

Browse files
authored
CI: Force pull requests to fetch history (#9720)
Previous implementation only fetched the latest changes made in the current branch. Since the CI pipeline only triggers on the latest pushed commit, this means linting errors could previously be avoided due to having multiple commits in a single push.
1 parent 7a623c4 commit 58ebe9a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/test.yml

+2
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ jobs:
2121

2222
steps:
2323
- uses: actions/checkout@v3
24+
with:
25+
fetch-depth: 100 # assumes PR/push to master is no larger than 100 commits. Other solutions are needlessly complex.
2426

2527
- name: Use Node.js ${{ matrix.node-version }}
2628
uses: actions/setup-node@v3

0 commit comments

Comments
 (0)