-
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 PHP requirement to ~8.1, upgrade all packages, switch CI/CD f…
…rom Travis to GitHub actions (#19)
- Loading branch information
Showing
8 changed files
with
116 additions
and
199 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 |
---|---|---|
@@ -0,0 +1,42 @@ | ||
name: Tests | ||
|
||
on: | ||
push: | ||
branches: ["1.0"] | ||
pull_request: | ||
branches: ["1.0"] | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Setup PHP with tools | ||
uses: shivammathur/setup-php@v2 | ||
if: ${{ env.ACT }} | ||
with: | ||
php-version: "8.2" | ||
tools: phpunit | ||
|
||
- 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 test suite | ||
run: composer run-script test |
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,34 +1,38 @@ | ||
{ | ||
"name": "descom/sms-php", | ||
"description": "Build your SMS application with PHP, easy SMS sending and worldwide coverage", | ||
"type": "library", | ||
"license": "MIT", | ||
"keywords": ["sms", "php", "descom"], | ||
"homepage": "https://www.descomsms.com", | ||
"authors": [ | ||
{ | ||
"name": "Descom Soporte", | ||
"email": "soporte@descom.es" | ||
} | ||
], | ||
"require": { | ||
"php": "^5.6|^7.0", | ||
"guzzlehttp/guzzle": "~6.0|~5.3.1" | ||
}, | ||
"autoload": { | ||
"psr-4": { | ||
"Descom\\Sms\\": "src/" | ||
} | ||
}, | ||
"require-dev": { | ||
"phpunit/phpunit": "^5.7|^7.0" | ||
}, | ||
"autoload-dev": { | ||
"psr-4": { | ||
"Descom\\Sms\\Test\\": "tests" | ||
} | ||
}, | ||
"scripts": { | ||
"test": "vendor/bin/phpunit" | ||
"name": "descom/sms-php", | ||
"description": "Build your SMS application with PHP, easy SMS sending and worldwide coverage", | ||
"type": "library", | ||
"license": "MIT", | ||
"keywords": [ | ||
"sms", | ||
"php", | ||
"descom" | ||
], | ||
"homepage": "https://www.descomsms.com", | ||
"authors": [ | ||
{ | ||
"name": "Descom Soporte", | ||
"email": "soporte@descom.es" | ||
} | ||
], | ||
"require": { | ||
"php": "~8.1", | ||
"guzzlehttp/guzzle": "^7.0" | ||
}, | ||
"autoload": { | ||
"psr-4": { | ||
"Descom\\Sms\\": "src/" | ||
} | ||
}, | ||
"require-dev": { | ||
"phpunit/phpunit": "^10.3" | ||
}, | ||
"autoload-dev": { | ||
"psr-4": { | ||
"Descom\\Sms\\Test\\": "tests" | ||
} | ||
}, | ||
"scripts": { | ||
"test": "vendor/bin/phpunit" | ||
} | ||
} |
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,28 +1,12 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<phpunit bootstrap="vendor/autoload.php" | ||
backupGlobals="false" | ||
backupStaticAttributes="false" | ||
colors="true" | ||
verbose="true" | ||
convertErrorsToExceptions="true" | ||
convertNoticesToExceptions="true" | ||
convertWarningsToExceptions="true" | ||
processIsolation="false" | ||
stopOnFailure="false"> | ||
<testsuites> | ||
<testsuite name="League Test Suite"> | ||
<directory>tests</directory> | ||
</testsuite> | ||
</testsuites> | ||
<filter> | ||
<whitelist> | ||
<directory suffix=".php">src/</directory> | ||
</whitelist> | ||
</filter> | ||
<logging> | ||
<log type="junit" target="build/report.junit.xml"/> | ||
<log type="coverage-html" target="build/coverage" charset="UTF-8" yui="true" highlight="true"/> | ||
<log type="coverage-text" target="build/coverage.txt"/> | ||
<log type="coverage-clover" target="build/logs/clover.xml"/> | ||
</logging> | ||
</phpunit> |
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.