Skip to content

Commit 3689d46

Browse files
authored
Merge pull request #2 from codebar-ag/feature-refresh
Feature Refresh
2 parents 3ed18c3 + 89119b4 commit 3689d46

File tree

6 files changed

+95
-32
lines changed

6 files changed

+95
-32
lines changed

.github/ISSUE_TEMPLATE/bug.yml

+52
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
name: Bug Report
2+
description: Report an Issue or Bug with the Package
3+
title: "[Bug]: "
4+
labels: ["bug"]
5+
body:
6+
- type: markdown
7+
attributes:
8+
value: |
9+
We're sorry to hear you have a problem. Can you help us solve it by providing the following details.
10+
- type: textarea
11+
id: what-happened
12+
attributes:
13+
label: What happened?
14+
description: What did you expect to happen?
15+
placeholder: I cannot currently do X thing because when I do, it breaks X thing.
16+
validations:
17+
required: true
18+
19+
- type: input
20+
id: package-version
21+
attributes:
22+
label: Package Version
23+
description: What version of our Package are you running? Please be as specific as possible
24+
placeholder: 2.0.0
25+
validations:
26+
required: true
27+
- type: input
28+
id: php-version
29+
attributes:
30+
label: PHP Version
31+
description: What version of PHP are you running? Please be as specific as possible
32+
placeholder: 8.2.0
33+
validations:
34+
required: true
35+
- type: input
36+
id: laravel-version
37+
attributes:
38+
label: Laravel Version
39+
description: What version of Laravel are you running? Please be as specific as possible
40+
placeholder: 9.0.0
41+
validations:
42+
required: true
43+
- type: dropdown
44+
id: operating-systems
45+
attributes:
46+
label: Which operating systems does with happen with?
47+
description: You may select more than one.
48+
multiple: true
49+
options:
50+
- macOS
51+
- Windows
52+
- Linux

.github/ISSUE_TEMPLATE/config.yml

+6-9
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,8 @@
11
blank_issues_enabled: false
22
contact_links:
3-
- name: Ask a question
4-
url: https://github.com/codebar-ag/laravel-twilio-verify/discussions/new?category=q-a
5-
about: Ask the community for help
6-
- name: Request a feature
7-
url: https://github.com/codebar-ag/laravel-twilio-verify/discussions/new?category=ideas
8-
about: Share ideas for new features
9-
- name: Report a bug
10-
url: https://github.com/codebar-ag/laravel-twilio-verify/issues/new
11-
about: Report a reproducable bug
3+
- name: Questions & Feature Requests
4+
url: https://github.com/codebar-ag/laravel-twilio-verify/issues/new
5+
about: Ask the community for help
6+
- name: Report a security issue
7+
url: https://github.com/codebar-ag/laravel-twilio-verify/security/policy
8+
about: Learn how to notify us for sensitive bugs

.github/workflows/psalm.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
- name: Setup PHP
1717
uses: shivammathur/setup-php@v2
1818
with:
19-
php-version: '8.0'
19+
php-version: '8.1'
2020
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick
2121
coverage: none
2222

.github/workflows/run-tests.yml

+22-10
Original file line numberDiff line numberDiff line change
@@ -2,29 +2,30 @@ name: run-tests
22

33
on:
44
push:
5-
branches: [main]
5+
branches: [ main ]
66
pull_request:
7-
branches: [main]
7+
branches: [ main ]
88

99
jobs:
1010
test:
1111
runs-on: ${{ matrix.os }}
1212
strategy:
1313
fail-fast: true
14+
max-parallel: 1
1415
matrix:
15-
os: [ubuntu-latest, windows-latest]
16-
php: [8.0]
17-
laravel: [8.*]
18-
stability: [prefer-lowest, prefer-stable]
16+
os: [ ubuntu-latest, windows-latest ]
17+
php: [ 8.2, 8.3 ]
18+
laravel: [ 10.* ]
19+
stability: [ prefer-lowest, prefer-stable ]
1920
include:
20-
- laravel: 8.*
21-
testbench: ^6.6
21+
- laravel: 10.*
22+
testbench: 8.*
2223

2324
name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }} - ${{ matrix.os }}
2425

2526
steps:
2627
- name: Checkout code
27-
uses: actions/checkout@v2
28+
uses: actions/checkout@v3
2829

2930
- name: Setup PHP
3031
uses: shivammathur/setup-php@v2
@@ -43,5 +44,16 @@ jobs:
4344
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
4445
composer update --${{ matrix.stability }} --prefer-dist --no-interaction
4546
47+
- name: Set phpunit.xml
48+
run: cp phpunit.xml.dist phpunit.xml
49+
4650
- name: Execute tests
47-
run: vendor/bin/phpunit
51+
run: vendor/bin/pest
52+
53+
- name: Store test reports
54+
uses: actions/upload-artifact@v2
55+
with:
56+
name: Store report
57+
retention-days: 1
58+
path: |
59+
./reports

composer.json

+13-12
Original file line numberDiff line numberDiff line change
@@ -21,19 +21,19 @@
2121
}
2222
],
2323
"require": {
24-
"php": ">=8.0",
25-
"guzzlehttp/guzzle": "^7.0.1",
26-
"illuminate/contracts": "^8.0|^9.0",
27-
"spatie/laravel-package-tools": "^1.4.3"
24+
"php": "^8.1",
25+
"guzzlehttp/guzzle": "^7.8",
26+
"illuminate/contracts": "^10.0",
27+
"spatie/laravel-package-tools": "^1.16"
2828
},
2929
"require-dev": {
30-
"brianium/paratest": "^6.2",
31-
"friendsofphp/php-cs-fixer": "3.0.0",
32-
"nunomaduro/collision": "^5.3",
33-
"orchestra/testbench": "^6.15",
34-
"phpunit/phpunit": "^9.3",
35-
"spatie/laravel-ray": "^1.9",
36-
"vimeo/psalm": "^4.4"
30+
"friendsofphp/php-cs-fixer": "^3.46",
31+
"nunomaduro/collision": "^7.10",
32+
"orchestra/testbench": "^8.20",
33+
"pestphp/pest": "^2.31",
34+
"phpunit/phpunit": "^10.5",
35+
"spatie/laravel-ray": "^1.33",
36+
"vimeo/psalm": "^5.19"
3737
},
3838
"autoload": {
3939
"psr-4": {
@@ -54,7 +54,8 @@
5454
"config": {
5555
"sort-packages": true,
5656
"allow-plugins": {
57-
"composer/package-versions-deprecated": true
57+
"composer/package-versions-deprecated": true,
58+
"pestphp/pest-plugin": true
5859
}
5960
},
6061
"extra": {

tests/Pest.php

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<?php

0 commit comments

Comments
 (0)