From 1eb936a96926459d3b1dc14cd710cfff06486625 Mon Sep 17 00:00:00 2001 From: tofa <79044321+im-tofa@users.noreply.github.com> Date: Sun, 20 Aug 2023 10:51:47 +0200 Subject: [PATCH] Force pull requests to fetch history (#5) * 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. --- .github/workflows/test.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 845acca9b9e0..0b944b73c941 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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