Skip to content

Commit

Permalink
Force pull requests to fetch history (#5)
Browse files Browse the repository at this point in the history
* Force pull requests to fetch history. 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 can 
   be avoided e.g due to multiple commits in a 
   push.
  • Loading branch information
im-tofa authored Aug 20, 2023
1 parent cbfca62 commit 1eb936a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ jobs:

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

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

0 comments on commit 1eb936a

Please sign in to comment.