Skip to content
This repository has been archived by the owner on May 28, 2023. It is now read-only.

Commit

Permalink
fix: blocks 0
Browse files Browse the repository at this point in the history
  • Loading branch information
brokeyourbike committed May 28, 2023
1 parent 2cac5f9 commit 83a64b3
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 22 deletions.
7 changes: 1 addition & 6 deletions .github/workflows/static.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,23 +17,18 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: "${{ matrix.php-version }}"
coverage: none
tools: composer

- name: Download dependencies
env:
COMPOSER_AUTH: ${{ secrets.COMPOSER_AUTH }}
run: composer update --no-interaction --no-progress

- name: Download PHPStan
env:
COMPOSER_AUTH: ${{ secrets.COMPOSER_AUTH }}
run: composer bin phpstan require phpstan/phpstan

- name: Execute PHPStan
Expand Down
9 changes: 3 additions & 6 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Install PHP
uses: shivammathur/setup-php@v2
Expand All @@ -25,25 +25,22 @@ jobs:
coverage: pcov

- name: Install PHP dependencies
env:
COMPOSER_AUTH: ${{ secrets.COMPOSER_AUTH }}
run: composer install -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist

- name: Run PHPUnit
run: vendor/bin/phpunit --coverage-clover=coverage.xml

- name: Upload coverage to codecov
uses: codecov/codecov-action@v2
uses: codecov/codecov-action@v3
continue-on-error: true
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./coverage.xml

- name: Upload coverage to codeclimate
uses: paambaati/codeclimate-action@v3.0.0
uses: paambaati/codeclimate-action@v4
continue-on-error: true
env:
CC_TEST_REPORTER_ID: ${{ secrets.CODECLIMATE_TOKEN }}
with:
coverageCommand: ''
coverageLocations: ./coverage.xml:clover
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
# bancore-service

[![License: MPL-2.0](https://img.shields.io/badge/license-MPL--2.0-purple.svg)](https://github.com/glocurrency/bancore-service/blob/main/LICENSE)
[![tests](https://github.com/glocurrency/bancore-service/actions/workflows/tests.yml/badge.svg)](https://github.com/glocurrency/bancore-service/actions/workflows/tests.yml)
[![Maintainability](https://api.codeclimate.com/v1/badges/d9476cc5ce4a529c942a/maintainability)](https://codeclimate.com/repos/61ffcbda569670017700083e/maintainability)
[![Test Coverage](https://api.codeclimate.com/v1/badges/d9476cc5ce4a529c942a/test_coverage)](https://codeclimate.com/repos/61ffcbda569670017700083e/test_coverage)

Bancore service to consume with MW.

## Authors
- [Ivan Stasiuk](https://github.com/brokeyourbike) | [Twitter](https://twitter.com/brokeyourbike) | [stasi.uk](https://stasi.uk)
- [Ivan Stasiuk](https://github.com/brokeyourbike) | [Twitter](https://twitter.com/brokeyourbike) | [LinkedIn](https://www.linkedin.com/in/brokeyourbike) | [stasi.uk](https://stasi.uk)

## License
[Mozilla Public License v2.0](https://github.com/glocurrency/bancore-service/blob/main/LICENSE)
8 changes: 2 additions & 6 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"brokeyourbike/base-models": "^0.3.0",
"brokeyourbike/country-casts-laravel": "^0.1.0",
"brokeyourbike/has-source-model": "^2.0",
"glocurrency/middleware-blocks": "^0.4.0",
"glocurrency/middleware-blocks": "^0",
"illuminate/contracts": "^8.0|^9.0",
"illuminate/database": "^8.0|^9.0"
},
Expand Down Expand Up @@ -53,11 +53,7 @@
"minimum-stability": "stable",
"prefer-stable": true,
"repositories": {
"packagist.org": false,
"private-packagist": {
"type": "composer",
"url": "https://repo.packagist.com/glocurrency/"
}
"packagist.com": false
},
"version": "0.1.2"
}
1 change: 1 addition & 0 deletions phpstan.neon
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ includes:

parameters:
checkMissingIterableValueType: false
checkGenericClassInNonGenericObjectType: false
level: max
paths:
- src
4 changes: 2 additions & 2 deletions tests/Unit/ConfigTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ public function it_will_return_empty_string_if_value_not_found()
/** @test */
public function it_can_return_values()
{
$url = $this->faker->url;
$username = $this->faker->userName;
$url = $this->faker->url();
$username = $this->faker->userName();
$password = $this->faker->password();
$senderPhoneNumber = $this->faker->phoneNumber();
$recipientPhoneNumber = $this->faker->phoneNumber();
Expand Down

0 comments on commit 83a64b3

Please sign in to comment.