Skip to content

Commit 5511abf

Browse files
authored
Merge pull request #18 from platformsh/gh-actions
Switch to GitHub actions and bump PHP version.
2 parents 9951de0 + 4349211 commit 5511abf

7 files changed

Lines changed: 31 additions & 69 deletions

File tree

.circleci/config.yml

Lines changed: 0 additions & 43 deletions
This file was deleted.
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
---
2+
name: Quality Assurance
3+
on:
4+
push: ~
5+
pull_request: ~
6+
7+
jobs:
8+
phpunit:
9+
name: PHPUnit tests on ${{ matrix.php }} ${{ matrix.composer-flags }}
10+
runs-on: ubuntu-latest
11+
strategy:
12+
matrix:
13+
php: [ '7.2', '7.3', '7.4', '8.0' ]
14+
composer-flags: [ '' ]
15+
phpunit-flags: [ '--coverage-text' ]
16+
steps:
17+
- uses: actions/checkout@v2
18+
- uses: shivammathur/setup-php@v2
19+
with:
20+
php-version: ${{ matrix.php }}
21+
coverage: xdebug
22+
tools: composer:v2
23+
- run: composer update --no-progress ${{ matrix.composer-flags }}
24+
- run: vendor/bin/phpunit ${{ matrix.phpunit-flags }}

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
vendor
22
composer.lock
3+
.phpunit.result.cache

.travis.yml

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

README.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
# Platform.sh Config Reader (PHP)
22

3-
[![CircleCI Status](https://circleci.com/gh/platformsh/config-reader-php.svg?style=shield&circle-token=:circle-token)](https://circleci.com/gh/platformsh/config-reader-php)
4-
53
This library provides a streamlined and easy to use way to interact with a Platform.sh environment. It offers utility methods to access routes and relationships more cleanly than reading the raw environment variables yourself.
64

7-
This library requires PHP 7.1 or later.
5+
This library requires PHP 7.2 or later.
86

97
## Install
108

@@ -158,7 +156,7 @@ Two formatters are included out of the box:
158156

159157
### Reading Platform.sh variables
160158

161-
Platform.sh allows you to define arbitrary variables that may be available at build time, runtime, or both. They are stored in the `PLATFORM_VARIABLES` environment variable, which is a base64-encoded JSON string.
159+
Platform.sh allows you to define arbitrary variables that may be available at build time, runtime, or both. They are stored in the `PLATFORM_VARIABLES` environment variable, which is a base64-encoded JSON string.
162160

163161
The following two methods allow access to those values from your code without having to bother decoding the values yourself:
164162

composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@
99
}
1010
],
1111
"require": {
12-
"php": ">=7.1"
12+
"php": ">=7.2"
1313
},
1414
"require-dev": {
15-
"phpunit/phpunit": "^7.5"
15+
"phpunit/phpunit": "^8.5"
1616
},
1717
"autoload": {
1818
"psr-4": {
@@ -26,7 +26,7 @@
2626
},
2727
"config": {
2828
"platform": {
29-
"php": "7.1"
29+
"php": "7.2"
3030
}
3131
}
3232
}

tests/ConfigTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class ConfigTest extends TestCase
2222
*/
2323
protected $mockEnvironmentDeploy = [];
2424

25-
public function setUp()
25+
public function setUp(): void
2626
{
2727
$env = $this->loadJsonFile('ENV');
2828

0 commit comments

Comments
 (0)