Skip to content

Commit

Permalink
Adjust Action to Run tests
Browse files Browse the repository at this point in the history
  • Loading branch information
chongkan committed Apr 23, 2024
1 parent 1c0e94c commit fe9c484
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 10 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,20 @@ jobs:
matrix:
php: ['8.2']
experimental: [false]
include:
- php: '8.2'
experimental: true
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
- uses: actions/cache@v2
- uses: actions/cache@v4
with:
path: ~/.composer/cache/files
key: php${{ matrix.php }}-${{ hashFiles('**/composer.lock') }}
restore-keys: php${{ matrix.php }}-
- run: composer install --prefer-dist --optimize-autoloader --no-interaction --no-progress
- run: vendor/bin/phpunit --testdox
- run: vendor/bin/phpunit --testdox tests
- name: Upload test coverage
uses: actions/upload-artifact@v2
with:
name: test-coverage
path: coverage/
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
}
],
"require": {
"php": "~8.0",
"php": "^7.4 || ~8.0",
"ext-sodium": "*",
"guzzlehttp/guzzle": "^7.3",
"illuminate/http": "~8.0 || ~9.0 || ^10.0 || ^11.0",
Expand All @@ -57,7 +57,7 @@
}
},
"scripts": {
"test": "vendor/bin/phpunit"
"test": "vendor/bin/phpunit tests"
},
"config": {
"sort-packages": true
Expand Down
4 changes: 2 additions & 2 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit fe9c484

Please sign in to comment.