Skip to content

Commit

Permalink
feat(Exhanger): Bank of England
Browse files Browse the repository at this point in the history
  • Loading branch information
4513 committed Dec 2, 2023
1 parent 5fcdc0d commit 97e4d33
Show file tree
Hide file tree
Showing 20 changed files with 574 additions and 181 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/min-stability.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Minimum Stability

on:
push:
branches:
- "**"
pull_request:
branches: [ "master" ]

permissions:
contents: read

jobs:
standard:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.1'

- name: Composer Install
run: composer update --prefer-dist --no-progress --prefer-lowest

- name: PHPUnit
run: ./vendor/bin/phpunit --testsuite Full
23 changes: 23 additions & 0 deletions .github/workflows/phpcodesniffer.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: PHP_CodeSniffer

on:
push:
branches:
- "**"

permissions:
contents: read

jobs:
standard:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: Composer Install
run: composer install --prefer-dist --no-progress

- name: PHP_CodeSniffer
run: ./vendor/bin/phpcs
14 changes: 3 additions & 11 deletions .github/workflows/php.yml → .github/workflows/phpcoverage.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
name: PHP Composer
name: PHPCoverage

on:
push:
branches:
- "**"
pull_request:
branches: [ "master" ]
schedule:
- cron: "0 1 * * *"

Expand All @@ -23,14 +21,8 @@ jobs:
- name: Composer Install
run: composer install --prefer-dist --no-progress

- name: PHPUnit
- name: PHPUnitCoverage
run: XDEBUG_MODE=coverage ./vendor/bin/phpunit --log-junit junit_report.xml --coverage-clover clover.xml --coverage-text --colors=never

- name: PHPStan
run: ./vendor/bin/phpstan

- name: PHP_CodeSniffer
run: ./vendor/bin/phpcs

- name: CodeCov
- name: CodeCov
uses: codecov/codecov-action@v3
23 changes: 23 additions & 0 deletions .github/workflows/phpstan.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: PHPStan

on:
push:
branches:
- "**"

permissions:
contents: read

jobs:
standard:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: Composer Install
run: composer install --prefer-dist --no-progress

- name: PHPStan
run: ./vendor/bin/phpstan --memory-limit=256M
27 changes: 27 additions & 0 deletions .github/workflows/phpunit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: PHPUnit

on:
push:
branches:
- "**"
pull_request:
branches: [ "master" ]
schedule:
- cron: "0 1 * * *"

permissions:
contents: read

jobs:
standard:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: Composer Install
run: composer install --prefer-dist --no-progress

- name: PHPUnit
run: XDEBUG_MODE=coverage ./vendor/bin/phpunit
15 changes: 15 additions & 0 deletions .idea/currency-rates.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 15 additions & 0 deletions .idea/php-docker-settings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 13 additions & 0 deletions .idea/php.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Changelog
All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]

## [1.1.0] - 2023-12-02

### Added
- Exchanger - Bank of England - [\#1](../../../issues/1)
16 changes: 12 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,18 +36,26 @@
"require": {
"php": "^8.1",
"mibo/currencies": "^1.0",
"ext-xmlreader": "*"
"ext-xmlreader": "*",
"nesbot/carbon": "^2.72"
},
"require-dev": {
"phpunit/phpunit": "^10.0",
"phpunit/phpunit": "^10.1",
"phpunit/php-invoker": "^4.0",
"phpstan/phpstan": "^1.5",
"squizlabs/php_codesniffer": "^3.6",
"phpstan/phpstan-strict-rules": "^1.5",
"jetbrains/phpstorm-attributes": "^1.0"
"jetbrains/phpstorm-attributes": "^1.0",
"slevomat/coding-standard": "^8.13",
"phpstan/extension-installer": "^1.3",
"php-parallel-lint/php-parallel-lint": "^1.3"
},
"config": {
"platform-check": true,
"lock": false
"lock": false,
"allow-plugins": {
"phpstan/extension-installer": true,
"dealerdirect/phpcodesniffer-composer-installer": true
}
}
}
Loading

0 comments on commit 97e4d33

Please sign in to comment.