diff --git a/.github/workflows/php.yml b/.github/workflows/php.yml deleted file mode 100644 index cb50846..0000000 --- a/.github/workflows/php.yml +++ /dev/null @@ -1,36 +0,0 @@ -name: PHP Composer - -on: - push: - branches: [ "master" ] - pull_request: - branches: [ "master" ] - -permissions: - contents: read - -jobs: - build: - - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v3 - - - name: Validate composer.json and composer.lock - run: composer validate --strict - - - name: Cache Composer packages - id: composer-cache - uses: actions/cache@v3 - with: - path: vendor - key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }} - restore-keys: | - ${{ runner.os }}-php- - - - name: Install dependencies - run: composer install --prefer-dist --no-progress - - - name: Run tests - run: vendor/bin/phpunit diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml new file mode 100644 index 0000000..163cf3a --- /dev/null +++ b/.github/workflows/tests.yml @@ -0,0 +1,32 @@ +name: PHPUnit + +on: + push: + branches: [ "master" ] + pull_request: + branches: [ "master" ] + +permissions: + contents: read + +jobs: + tests: + + runs-on: ubuntu-latest + + strategy: + fail-fast: true + matrix: + php: [7.1, 7.2, 7.3, 7.4, 8.0, 8.1, 8.2, 8.3] + + steps: + - uses: actions/checkout@v3 + + - name: Validate composer.json + run: composer validate --strict + + - name: Install dependencies + run: composer install --prefer-dist --no-interaction --no-progress + + - name: Execute tests + run: vendor/bin/phpunit diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index e6a04bd..0000000 --- a/.travis.yml +++ /dev/null @@ -1,12 +0,0 @@ -language: php -php: - - 7.1 - - 7.2 - - 7.3 - - 7.4 - - 8.0 - -before_script: composer install --no-interaction --prefer-dist - -script: - - vendor/bin/phpunit --verbose $PHPUNIT_FLAGS \ No newline at end of file diff --git a/README.md b/README.md index b929b8c..10a2708 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ Librarie PHP pentru verificarea gratuita a contribuabililor care sunt inregistrati conform art. 316 din Codul Fiscal [![Latest Version](http://img.shields.io/packagist/v/itrack/anaf.svg)](https://packagist.org/packages/itrack/anaf) -[![Build Status](https://travis-ci.com/itrack/anaf.svg?branch=master)](https://app.travis-ci.com/itrack/anaf) +[![Build Status](https://github.com/itrack/anaf/actions/workflows/tests.yml/badge.svg)](https://app.travis-ci.com/itrack/anaf) [![StandWithUkraine](https://raw.githubusercontent.com/vshymanskyy/StandWithUkraine/main/badges/StandWithUkraine.svg)](https://vshymanskyy.github.io/StandWithUkraine/) ----- diff --git a/composer.json b/composer.json index 9ad3f5a..4351159 100644 --- a/composer.json +++ b/composer.json @@ -1,12 +1,15 @@ { "name": "itrack/anaf", "type": "library", - "version": "3.0.6", "description": "API ANAF pentru verificarea contribuabililor care sunt inregistrati conform art. 316 din Codul Fiscal", - "authors": [{ + "license": "MIT", + "homepage": "https://devgeeks.ro", + "authors": [ + { "name": "Alex Stoica", "email": "0x01.alex+github@gmail.com" - }], + } + ], "keywords": [ "api anaf", "verificare tva", @@ -15,9 +18,6 @@ "date firma", "mfinante" ], - "license": [ - "MIT" - ], "require": { "php": ">=7.1 || >=8.0", "ext-curl": "*", @@ -41,5 +41,7 @@ "branch-alias": { "dev-master": "0.1.x-dev" } - } + }, + "minimum-stability": "stable", + "prefer-stable": true }