diff --git a/.github/workflows/coverage-diff.yml b/.github/workflows/coverage-diff.yml index 0e86c274..28bb4be7 100644 --- a/.github/workflows/coverage-diff.yml +++ b/.github/workflows/coverage-diff.yml @@ -21,10 +21,6 @@ jobs: - uses: KengoTODA/actions-setup-docker-compose@4677f0d86d41e623c9c6e11e1d910976da297bc0 with: version: '2.14.2' - - name: Set Permissions for Coverage Directory - run: | - mkdir -p cov/json cov/xml cov/html - chmod -R 777 cov - name: "Create Empty env File for Docker" run: touch .env - name: Clear previous coverage data @@ -59,10 +55,6 @@ jobs: - uses: KengoTODA/actions-setup-docker-compose@4677f0d86d41e623c9c6e11e1d910976da297bc0 with: version: '2.14.2' - - name: Set Permissions for Coverage Directory - run: | - mkdir -p cov/json cov/xml cov/html - chmod -R 777 cov - name: "Create Empty env File for Docker" run: touch .env - name: PHPUnit for Base diff --git a/.github/workflows/coverage-report.yml b/.github/workflows/coverage-report.yml index f77569f9..246a1e6f 100644 --- a/.github/workflows/coverage-report.yml +++ b/.github/workflows/coverage-report.yml @@ -22,10 +22,6 @@ jobs: - uses: KengoTODA/actions-setup-docker-compose@4677f0d86d41e623c9c6e11e1d910976da297bc0 with: version: '2.14.2' - - name: Set Permissions for Coverage Directory - run: | - mkdir -p cov/json cov/xml cov/html - chmod -R 777 cov - name: "Create Empty env File for Docker" run: touch .env - name: PHPUnit diff --git a/.gitignore b/.gitignore index f896e19d..94d68667 100644 --- a/.gitignore +++ b/.gitignore @@ -8,4 +8,5 @@ release/yarn-error.log release/node_modules .php-cs-fixer.cache -cov/ \ No newline at end of file +cov/**/*.* +!cov/**/.gitkeep \ No newline at end of file diff --git a/cov/.gitkeep b/cov/.gitkeep new file mode 100644 index 00000000..e69de29b diff --git a/cov/html/.gitkeep b/cov/html/.gitkeep new file mode 100644 index 00000000..e69de29b diff --git a/cov/json/.gitkeep b/cov/json/.gitkeep new file mode 100644 index 00000000..e69de29b diff --git a/cov/markdown/.gitkeep b/cov/markdown/.gitkeep new file mode 100644 index 00000000..e69de29b diff --git a/cov/xml/.gitkeep b/cov/xml/.gitkeep new file mode 100644 index 00000000..e69de29b diff --git a/coverage.php b/coverage.php index c59a9c90..495e2573 100644 --- a/coverage.php +++ b/coverage.php @@ -3,14 +3,6 @@ $outputPath = __DIR__ . "/cov/json/"; $markdownPath = __DIR__ . "/cov/markdown/"; -if (!file_exists($outputPath)) { - mkdir($outputPath, 0777, true); -} - -if (!file_exists($markdownPath)) { - mkdir($markdownPath, 0777, true); -} - $contents = file_get_contents(__DIR__ . "/cov/xml/clover.xml"); $xml = simplexml_load_string($contents); $arr = json_decode(json_encode($xml), true);