added feature test to ConfigAPI #37
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
# GitHub Action for Testing Laravel Package | |
name: CI & Testing | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
jobs: | |
laravel-ci: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
php-versions: ["8.1", "8.2"] | |
steps: | |
- name: Setup PHP, with composer and extensions | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php-versions }} | |
extensions: mbstring, dom, fileinfo | |
coverage: xdebug #optional | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Show php version | |
run: php -v | |
- name: Install Dependencies | |
run: composer install -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist | |
- name: Static Analysis via PHPStan | |
run: composer analyse | |
- name: Test via PHPUnit | |
run: composer test |