08 2024
This commit is contained in:
parent
04d677d37a
commit
bfa3bb1df4
1191 changed files with 637397 additions and 10619 deletions
42
app/Services/IPinfo/.github/workflows/phpunit.yaml
vendored
Normal file
42
app/Services/IPinfo/.github/workflows/phpunit.yaml
vendored
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
name: Unit Tests
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
run:
|
||||
|
||||
runs-on: ${{ matrix.operating-system }}
|
||||
strategy:
|
||||
matrix:
|
||||
operating-system: [ubuntu-latest]
|
||||
php-versions: ['8.0', '8.1', '8.2']
|
||||
phpunit-versions: ['9.5.20']
|
||||
|
||||
name: PHP ${{ matrix.php-versions }} Test on ${{ matrix.operating-system }}
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Setup PHP
|
||||
uses: shivammathur/setup-php@v2
|
||||
with:
|
||||
php-version: ${{ matrix.php-versions }}
|
||||
tools: phpunit:${{ matrix.phpunit-versions }}
|
||||
|
||||
- name: Check PHP Version
|
||||
run: php -v
|
||||
|
||||
- name: Validate composer.json and composer.lock
|
||||
run: composer validate --strict
|
||||
|
||||
- name: Composer install
|
||||
run: composer install --optimize-autoloader --prefer-dist --ignore-platform-reqs
|
||||
|
||||
- name: Run test suite
|
||||
env:
|
||||
IPINFO_TOKEN: ${{ secrets.IPINFO_TOKEN }}
|
||||
run: /usr/local/bin/phpunit --coverage-text
|
||||
Loading…
Add table
Add a link
Reference in a new issue