Skip to content

Commit

Permalink
chore(coverage-diff): use gitkeep instead of using 777 perms
Browse files Browse the repository at this point in the history
  • Loading branch information
Orkuncakilkaya committed Sep 3, 2024
1 parent f670f21 commit 6fcaae0
Show file tree
Hide file tree
Showing 9 changed files with 2 additions and 21 deletions.
8 changes: 0 additions & 8 deletions .github/workflows/coverage-diff.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
4 changes: 0 additions & 4 deletions .github/workflows/coverage-report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,5 @@
release/yarn-error.log
release/node_modules
.php-cs-fixer.cache
cov/
cov/**/*.*
!cov/**/.gitkeep
Empty file added cov/.gitkeep
Empty file.
Empty file added cov/html/.gitkeep
Empty file.
Empty file added cov/json/.gitkeep
Empty file.
Empty file added cov/markdown/.gitkeep
Empty file.
Empty file added cov/xml/.gitkeep
Empty file.
8 changes: 0 additions & 8 deletions coverage.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 6fcaae0

Please sign in to comment.