Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
RhysLees committed Jan 11, 2024
1 parent 3ed18c3 commit cb3c568
Show file tree
Hide file tree
Showing 4 changed files with 91 additions and 30 deletions.
52 changes: 52 additions & 0 deletions .github/ISSUE_TEMPLATE/bug.yml
Original file line number Diff line number Diff line change
@@ -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
15 changes: 6 additions & 9 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -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
32 changes: 22 additions & 10 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
22 changes: 11 additions & 11 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down

0 comments on commit cb3c568

Please sign in to comment.