Skip to content

Commit ba68825

Browse files
authored
Merge pull request #515 from Philipp91/github-actions
Replace Travis with GitHub Actions, especially for PHP CS Fixer
2 parents da89102 + 1f2e70d commit ba68825

File tree

6 files changed

+22
-88
lines changed

6 files changed

+22
-88
lines changed

.github/workflows/tests.yml

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818

1919
steps:
2020
- name: Checkout
21-
uses: actions/checkout@v4
21+
uses: actions/checkout@v5
2222

2323
- name: Setup PHP
2424
uses: shivammathur/setup-php@v2
@@ -31,3 +31,20 @@ jobs:
3131

3232
- name: Run PHPUnit
3333
run: ./vendor/bin/phpunit
34+
35+
php-cs-fixer:
36+
name: PHP-CS-Fixer
37+
runs-on: ubuntu-latest
38+
steps:
39+
- uses: actions/checkout@v5
40+
- uses: actions/cache@v4
41+
with:
42+
path: .php-cs-fixer.cache
43+
key: ${{ runner.OS }}-${{ github.repository }}-phpcsfixer-${{ github.sha }}
44+
restore-keys: |
45+
${{ runner.OS }}-${{ github.repository }}-phpcsfixer-
46+
47+
- name: PHP-CS-Fixer
48+
uses: docker://oskarstark/php-cs-fixer-ga
49+
with:
50+
args: -v --diff --dry-run

.travis.yml

Lines changed: 0 additions & 12 deletions
This file was deleted.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# PHP FinTS/HBCI library
22

3-
[![Build Status](https://travis-ci.org/nemiah/phpFinTS.svg?branch=master)](https://travis-ci.org/nemiah/phpFinTS)
3+
[![CI status](https://github.com/nemiah/phpFinTS/actions/workflows/tests.yml/badge.svg)](https://github.com/nemiah/phpFinTS/actions/workflows/tests.yml)
44

55
A PHP library implementing the following functions of the FinTS/HBCI protocol:
66

csfixer-check.sh

Lines changed: 0 additions & 36 deletions
This file was deleted.

disallowtabs.sh

Lines changed: 0 additions & 37 deletions
This file was deleted.

lib/Fhp/Action/SendSEPADirectDebit.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,10 @@
1111
use Fhp\Segment\Common\Kti;
1212
use Fhp\Segment\DME\HIDMESv1;
1313
use Fhp\Segment\DME\HIDMESv2;
14+
use Fhp\Segment\DME\HKDMEv2;
1415
use Fhp\Segment\DSE\HIDSESv2;
1516
use Fhp\Segment\DSE\HIDXES;
17+
use Fhp\Segment\DSE\HKDSEv2;
1618
use Fhp\Segment\SPA\HISPAS;
1719
use Fhp\Syntax\Bin;
1820
use Fhp\UnsupportedException;
@@ -159,7 +161,7 @@ protected function createRequest(BPD $bpd, ?UPD $upd)
159161
. implode(', ', $supportedPainNamespaces));
160162
}
161163

162-
/** @var mixed $hkdxe */ // TODO Put a new interface type here.
164+
/** @var HKDMEv2|HKDSEv2|HIDXES $hkdxe */
163165
$hkdxe = $hidxes->createRequestSegment();
164166
$hkdxe->kontoverbindungInternational = Kti::fromAccount($this->account);
165167
$hkdxe->sepaDescriptor = $this->painNamespace;

0 commit comments

Comments
 (0)