Skip to content

Commit

Permalink
Initial adjustments after forking (#2)
Browse files Browse the repository at this point in the history
* Add .idea folder to gitignore

* Adjust bundle name and urls in composer.json

* Add Github workflow to run tests

* Remove unneeded config files of original library

* Update license

See https://gist.github.com/fbaierl/1d740a7925a6e0e608824eb27a429370
  • Loading branch information
sprain authored Oct 18, 2021
1 parent 1d1bcc5 commit 24ded25
Show file tree
Hide file tree
Showing 9 changed files with 55 additions and 71 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: tests

on:
push:
pull_request:

jobs:
linux_tests:
runs-on: ubuntu-20.04

strategy:
matrix:
php: ['7.0', '7.1', '7.2', '7.3', '7.4']
stability: ['prefer-lowest', 'prefer-stable']
fail-fast: false

name: PHP ${{ matrix.php }} - ${{ matrix.stability }}

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

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

- name: Check for syntax errors in PHP files
run: find ./ -type f -name '*.php' -print0 | xargs -0 -L1 -P4 -- php -l

- name: Check composer files
run: composer validate --strict

- name: Install dependencies
run: composer update --${{ matrix.stability }} --prefer-dist --no-interaction --no-progress

- name: Execute tests
run: vendor/bin/phpunit --verbose
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ phpunit.xml

composer.lock
/vendor/
/.idea
21 changes: 0 additions & 21 deletions .php_cs.dist

This file was deleted.

21 changes: 0 additions & 21 deletions .scrutinizer.yml

This file was deleted.

18 changes: 0 additions & 18 deletions .travis.yml

This file was deleted.

3 changes: 2 additions & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
Copyright (c) 2013-2018 z38 <https://github.com/z38>
Copyright (c) 2013-2021 z38 <https://github.com/z38>
Copyright (c) 2021 ch2877 and contributors <https://github.com/ch2877/swiss-payment/graphs/contributors>

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
# SwissPayment

[![Build Status](https://travis-ci.org/z38/swiss-payment.png?branch=master)](https://travis-ci.org/z38/swiss-payment)
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/z38/swiss-payment/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/z38/swiss-payment/?branch=master)
[![Build Status](https://github.com/ch2877/swiss-payment/actions/workflows/tests.yml/badge.svg)](https://github.com/ch2877/swiss-payment/actions)

**SwissPayment** is a PHP library to generate Swiss pain.001 XML messages (complies with ISO-20022).

## Installation

Just install [Composer](http://getcomposer.org) and run `composer require z38/swiss-payment` in your project directory.
Just install [Composer](http://getcomposer.org) and run `composer require ch2877/swiss-payment` in your project directory.

## Usage

Expand Down
12 changes: 6 additions & 6 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
{
"name": "z38/swiss-payment",
"name": "ch2877/swiss-payment",
"type": "library",
"license": "MIT",
"description": "PHP library to generate Swiss pain.001 messages (complies with ISO-20022)",
"keywords": ["banking", "iso-20022", "six", "credit-transfer", "switzerland", "sepa", "xml"],
"homepage": "https://github.com/z38/swiss-payment",
"homepage": "https://github.com/ch2877/swiss-payment",
"authors": [
{
"name": "z38",
"homepage": "https://github.com/z38",
"name": "Multiple contributors",
"homepage": "https://github.com/ch2877/swiss-payment/graphs/contributors",
"role": "Developer"
}
],
"require": {
"php": "^5.6 || ^7"
"php": "^7"
},
"require-dev": {
"phpunit/phpunit": "^5 || ^8"
"phpunit/phpunit": "^6 | ^8"
},
"autoload": {
"psr-0": {
Expand Down
5 changes: 4 additions & 1 deletion phpunit.xml.dist
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>

<phpunit colors="true">
<phpunit
colors = "true"
convertDeprecationsToExceptions = "false"
>
<testsuites>
<testsuite name="SwissPayment Test Suite">
<directory>tests/Z38/SwissPayment</directory>
Expand Down

0 comments on commit 24ded25

Please sign in to comment.