This repository has been archived by the owner on Jul 2, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Upgrade to Domrobot v3 and adjust pipeline, Fix codestyle (#11)
* Upgrade Domrobot-Client from INWX to v3 * Bump versions to latest supported PHP and Symfony-Versions * Fix deprecations * Improve tests * Switch to Github Actions
- Loading branch information
Showing
14 changed files
with
245 additions
and
218 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1 @@ | ||
coverage_clover: build/logs/clover.xml | ||
service_name: travis-pro |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
name: INWX-API-Bundle | ||
on: ["push", "pull_request"] | ||
jobs: | ||
run: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
php-versions: ['7.2', '7.3', '7.4'] | ||
symfony-versions: ['3.4.*', '4.2.*', '4.3.*', '4.4.*', '5.0.*'] | ||
name: PHP ${{ matrix.php-versions }} with Symfony ${{ matrix.symfony-versions }} | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Setup PHP | ||
uses: shivammathur/setup-php@v1 | ||
with: | ||
coverage: xdebug | ||
extensions: mbstring | ||
ini-values: memory_limit=1G | ||
php-version: ${{ matrix.php-versions }} | ||
- name: Get Composer Cache Directory | ||
id: composer-cache | ||
run: echo "::set-output name=dir::$(composer config cache-files-dir)" | ||
- name: Validate composer.json and composer.lock | ||
run: composer validate | ||
- name: Install Symfony | ||
run: composer require --dev --no-update symfony/framework-bundle:${{ matrix.symfony-versions }} | ||
- name: Install dependencies | ||
run: composer install --prefer-dist --no-progress --no-suggest | ||
- uses: actions/cache@v1 | ||
with: | ||
path: ${{ steps.composer-cache.outputs.dir }} | ||
key: iab-php${{ matrix.php-versions }}-sf${{ matrix.symfony-versions }} | ||
restore-keys: iab-php${{ matrix.php-versions }}-sf${{ matrix.symfony-versions }} | ||
- name: Run linter | ||
run: ./vendor/bin/php-cs-fixer fix --diff --dry-run --no-interaction -v | ||
- name: Run tests | ||
run: ./vendor/bin/phpunit -c phpunit.dist.xml | ||
env: | ||
INWX_API_USERNAME: ${{ secrets.INWX_API_USERNAME }} | ||
INWX_API_PASSWORD: ${{ secrets.INWX_API_PASSWORD }} | ||
- name: Send to coveralls | ||
run: ./vendor/bin/php-coveralls -v | ||
env: | ||
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,12 @@ | ||
services: | ||
inwx_api: | ||
arguments: | ||
- '%inwx_api.environment%' | ||
- '%inwx_api.username%' | ||
- '%inwx_api.password%' | ||
- '%inwx_api.language%' | ||
- '%inwx_api.debug%' | ||
- options: | ||
- debug: '%inwx_api.debug%' | ||
- environment: '%inwx_api.environment%' | ||
- json: '%inwx_api.json%' | ||
- language: '%inwx_api.language%' | ||
class: SebTM\INWX\Domrobot | ||
public: true |
Oops, something went wrong.