Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .env.example
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Steam API key for testing
apiKey=
XDEBUG_MODE=coverage
XDEBUG_MODE=coverage
PHP_VERSION=8.1
11 changes: 7 additions & 4 deletions .github/workflows/php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ on:

jobs:
test:
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
strategy:
matrix:
php: [ '8.0', '7.4', '7.3' ]
php: [ '8.2','8.1', '8.0', '7.4' ]
continue-on-error: true
steps:
- uses: actions/checkout@v2
Expand All @@ -20,9 +20,12 @@ jobs:
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: bcmath, simplexml, libxml, curl, json
extensions: bcmath, simplexml, libxml, curl, json, sodium
coverage: pcov

- name: Mitigate Composer lock issues
run: composer update

- name: PHP ${{ matrix.php }} - Validate composer.json and composer.lock
run: composer validate

Expand All @@ -46,7 +49,7 @@ jobs:

- name: Publish Test Coverage
uses: paambaati/codeclimate-action@v2.7.5
if: ${{ matrix.php }} == '8.0' && ${{ github.ref }} == 'master'
if: ${{ matrix.php }} == '8.1' && ${{ github.ref }} == 'master'
env:
apiKey: ${{ secrets.STEAM_API_KEY }}
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
Expand Down
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -402,6 +402,9 @@ A Steam API key must be provided or most tests will fail.

**Run Tests**
```
# Build container
docker-compose build

# Install dependancies
docker-compose run php composer install

Expand Down
14 changes: 7 additions & 7 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@
{
"name": "syntax/steam-api",
"name": "gamerhash/steam-api",
"description": "A steam-api client for Laravel 6+",
"version": "2.3.0",
"version": "1.0",
"license": "MIT",
"authors": [
{
"name": "Stygian",
"email": "stygian.warlock.v2@gmail.com"
"name": "Gamerhash Development Team"
}
],
"require": {
"php": "^7.3|^8.0",
"laravel/framework": "^6.20.12|^7.30.3|^8.22.1",
"php": "^7.4|^8.0|^8.1|^8.2",
"laravel/framework": "^6.20.12|^7.30.3|^8.83.7|^9.7.0|^10.0",
"guzzlehttp/guzzle": "^7.0",
"ext-bcmath": "*",
"ext-simplexml": "*",
Expand Down Expand Up @@ -39,6 +38,7 @@
"minimum-stability": "stable",
"scripts": {
"test": "vendor/bin/phpunit",
"coverage": "vendor/bin/phpunit --coverage-clover=coverage.clover"
"coverage": "XDEBUG_MODE=coverage vendor/bin/phpunit --coverage-clover=coverage.clover",
"coverage:html": "XDEBUG_MODE=coverage vendor/bin/phpunit --coverage-html ./coverage"
}
}
Loading