diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml
index d55cfc1..28f4b4c 100644
--- a/.github/workflows/tests.yml
+++ b/.github/workflows/tests.yml
@@ -20,6 +20,8 @@ jobs:
matrix:
php-versions:
- '8.1'
+ - '8.2'
+ - '8.3'
drupal-release:
- 'stable'
composer-channel:
diff --git a/src/FileFetcher.php b/src/FileFetcher.php
index 8a72b2e..49b16d4 100644
--- a/src/FileFetcher.php
+++ b/src/FileFetcher.php
@@ -104,6 +104,8 @@ public function fetch(array $drupal_projects, $destination) {
$this->io->write(" - $filename ($url): ", FALSE);
}
+ // Test that the file exists before trying to copy it.
+ $this->httpDownloader->get($url);
$this->httpDownloader->copy($url, $destination . '/' . $filename);
if ($this->progress) {