Checkout first to avoid failure due to ChromeDriver file in target dir #2316
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
CI started breaking on 11 Jan for no good reason. After some research, it appears that the step to download ChromeDriver now leaves an artefact in the working directory: a license file
LICENSE.chromedriver
. When Git sees it, it refuses to checkout the code, as the target directory is neither empty nor a Git repository.To fix this, I have moved the checkout step to run first, before ChromeDriver is downloaded.
Note that the build will still fail due to the bundle audit. After this is merged, I should be able to merge the dependabot PRs and fix that.