Skip to content

Commit

Permalink
♻️ codeclimate, added a few tests and fix a few bugs
Browse files Browse the repository at this point in the history
Signed-off-by: bnomei <[email protected]>
  • Loading branch information
bnomei committed Jul 21, 2024
1 parent c4b7eb8 commit 4c4b33e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 12 deletions.
17 changes: 7 additions & 10 deletions .github/workflows/pest-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,11 @@ jobs:
- name: Install
run: composer install --no-interaction --prefer-dist --optimize-autoloader

- name: PEST
run: composer coverage

# - name: Test & publish code coverage
# uses: paambaati/[email protected]
# with:
# coverageCommand: composer coverage
# coverageLocations: ${{github.workspace}}/tests/clover.xml:clover
# env:
# CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
- name: Test & publish code coverage
uses: paambaati/[email protected]
with:
coverageCommand: composer coverage
coverageLocations: ${{github.workspace}}/tests/clover.xml:clover
env:
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}

4 changes: 2 additions & 2 deletions tests/JanitorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@

test('job', function () {
$janitor = new Janitor();
expect($janitor->command('janitor:job --key some.key.to.task --site')['status'])->toEqual(200);
expect($janitor->command('janitor:job --key some.key.to.task --site --quiet')['status'])->toEqual(200);

expect($janitor->command('janitor:job --key some.key.to.task --site --data "some data"')['message'])->toEqual('site:// some data');
expect($janitor->command('janitor:job --key some.key.to.task --site --data "some data" --quiet')['message'])->toEqual('site:// some data');
});

test('method', function () {
Expand Down

0 comments on commit 4c4b33e

Please sign in to comment.