diff --git a/.github/ISSUE_TEMPLATE/bug.yml b/.github/ISSUE_TEMPLATE/bug.yml new file mode 100644 index 0000000..52f37d5 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/bug.yml @@ -0,0 +1,52 @@ +name: Bug Report +description: Report an Issue or Bug with the Package +title: "[Bug]: " +labels: ["bug"] +body: + - type: markdown + attributes: + value: | + We're sorry to hear you have a problem. Can you help us solve it by providing the following details. + - type: textarea + id: what-happened + attributes: + label: What happened? + description: What did you expect to happen? + placeholder: I cannot currently do X thing because when I do, it breaks X thing. + validations: + required: true + + - type: input + id: package-version + attributes: + label: Package Version + description: What version of our Package are you running? Please be as specific as possible + placeholder: 2.0.0 + validations: + required: true + - type: input + id: php-version + attributes: + label: PHP Version + description: What version of PHP are you running? Please be as specific as possible + placeholder: 8.2.0 + validations: + required: true + - type: input + id: laravel-version + attributes: + label: Laravel Version + description: What version of Laravel are you running? Please be as specific as possible + placeholder: 9.0.0 + validations: + required: true + - type: dropdown + id: operating-systems + attributes: + label: Which operating systems does with happen with? + description: You may select more than one. + multiple: true + options: + - macOS + - Windows + - Linux diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml index ffa9e00..f739436 100644 --- a/.github/ISSUE_TEMPLATE/config.yml +++ b/.github/ISSUE_TEMPLATE/config.yml @@ -1,11 +1,8 @@ blank_issues_enabled: false contact_links: - - name: Ask a question - url: https://github.com/codebar-ag/laravel-twilio-verify/discussions/new?category=q-a - about: Ask the community for help - - name: Request a feature - url: https://github.com/codebar-ag/laravel-twilio-verify/discussions/new?category=ideas - about: Share ideas for new features - - name: Report a bug - url: https://github.com/codebar-ag/laravel-twilio-verify/issues/new - about: Report a reproducable bug + - name: Questions & Feature Requests + url: https://github.com/codebar-ag/laravel-twilio-verify/issues/new + about: Ask the community for help + - name: Report a security issue + url: https://github.com/codebar-ag/laravel-twilio-verify/security/policy + about: Learn how to notify us for sensitive bugs diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index 28b0602..ae885d2 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -2,29 +2,30 @@ name: run-tests on: push: - branches: [main] + branches: [ main ] pull_request: - branches: [main] + branches: [ main ] jobs: test: runs-on: ${{ matrix.os }} strategy: fail-fast: true + max-parallel: 1 matrix: - os: [ubuntu-latest, windows-latest] - php: [8.0] - laravel: [8.*] - stability: [prefer-lowest, prefer-stable] + os: [ ubuntu-latest, windows-latest ] + php: [ 8.2, 8.3 ] + laravel: [ 10.* ] + stability: [ prefer-lowest, prefer-stable ] include: - - laravel: 8.* - testbench: ^6.6 + - laravel: 10.* + testbench: 8.* name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }} - ${{ matrix.os }} steps: - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Setup PHP uses: shivammathur/setup-php@v2 @@ -43,5 +44,16 @@ jobs: composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update composer update --${{ matrix.stability }} --prefer-dist --no-interaction + - name: Set phpunit.xml + run: cp phpunit.xml.dist phpunit.xml + - name: Execute tests - run: vendor/bin/phpunit + run: vendor/bin/pest + + - name: Store test reports + uses: actions/upload-artifact@v2 + with: + name: Store report + retention-days: 1 + path: | + ./reports diff --git a/composer.json b/composer.json index ea1e8c3..e94488c 100644 --- a/composer.json +++ b/composer.json @@ -21,19 +21,19 @@ } ], "require": { - "php": ">=8.0", - "guzzlehttp/guzzle": "^7.0.1", - "illuminate/contracts": "^8.0|^9.0", - "spatie/laravel-package-tools": "^1.4.3" + "php": "^8.1", + "guzzlehttp/guzzle": "^7.8", + "illuminate/contracts": "^10.0", + "spatie/laravel-package-tools": "^1.16" }, "require-dev": { - "brianium/paratest": "^6.2", - "friendsofphp/php-cs-fixer": "3.0.0", - "nunomaduro/collision": "^5.3", - "orchestra/testbench": "^6.15", - "phpunit/phpunit": "^9.3", - "spatie/laravel-ray": "^1.9", - "vimeo/psalm": "^4.4" + "brianium/paratest": "^6.11", + "friendsofphp/php-cs-fixer": "^3.46", + "nunomaduro/collision": "^7.10", + "orchestra/testbench": "^8.20", + "phpunit/phpunit": "^9.6", + "spatie/laravel-ray": "^1.33", + "vimeo/psalm": "^4.30" }, "autoload": { "psr-4": {