Skip to content
This repository has been archived by the owner on Sep 5, 2024. It is now read-only.

Commit

Permalink
Merge pull request #91 from creasico/refactor/all
Browse files Browse the repository at this point in the history
Refactor everything
  • Loading branch information
feryardiant authored Mar 30, 2024
2 parents 7106331 + 83f286a commit 52d9b8f
Show file tree
Hide file tree
Showing 80 changed files with 1,064 additions and 1,082 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -107,23 +107,23 @@ jobs:

- name: Generate reports for CodeClimate
id: reports
if: ${{ matrix.laravel == '10.x' && ( github.actor != 'dependabot[bot]' || needs.configs.outputs.should-reports == '1' ) }}
if: ${{ matrix.db == 'pgsql' && ( github.actor != 'dependabot[bot]' || needs.configs.outputs.should-reports == '1' ) }}
env:
COVERAGE_FILE: tests/reports/clover.xml
CODECLIMATE_REPORT: tests/reports/codeclimate.${{ matrix.php }}.json
CODECLIMATE_REPORT: tests/reports/codeclimate-${{ matrix.php }}-L${{ matrix.laravel }}.json
run: |
if [[ -n \"$CC_TEST_REPORTER_URL\" ]]; then
curl -LSs $CC_TEST_REPORTER_URL > ./cc-test-reporter && chmod +x ./cc-test-reporter
./cc-test-reporter format-coverage -t clover -o $CODECLIMATE_REPORT $COVERAGE_FILE
echo "has-reports=1" >> $GITHUB_OUTPUT
fi
- name: Upload tests reports
- name: Upload reports for CodeClimate
uses: actions/upload-artifact@v4
if: ${{ matrix.laravel == '10.x' && ( github.actor != 'dependabot[bot]' || needs.configs.outputs.should-reports == '1' ) }}
if: ${{ steps.reports.outputs.has-reports == '1' }}
with:
name: test-reports-${{ matrix.php }}-${{ matrix.db }}
path: tests/reports
name: test-reports-${{ matrix.php }}-L${{ matrix.laravel }}
path: tests/reports/codeclimate-${{ matrix.php }}-L${{ matrix.laravel }}.json

reports:
name: Report Test Coverages
Expand All @@ -141,4 +141,4 @@ jobs:
- name: Report to CodeClimate
run: |
curl -LSs $CC_TEST_REPORTER_URL > ./cc-test-reporter && chmod +x ./cc-test-reporter
./cc-test-reporter sum-coverage -o - codeclimate.*.json | ./cc-test-reporter upload-coverage --input -
./cc-test-reporter sum-coverage -o - codeclimate-*.json | ./cc-test-reporter upload-coverage --input -
Loading

0 comments on commit 52d9b8f

Please sign in to comment.