Skip to content

Commit 12c3570

Browse files
authored
Merge pull request #57 from tighten/alk/v1-updates
v1 updates
2 parents 3960165 + 9b1c59a commit 12c3570

30 files changed

+679
-3361
lines changed

.env.testing.example

+1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
STRIPE_TEST_KEY=
22
STRIPE_TEST_SECRET=
3+
STRIPE_API_BASE="stripemock:12111"

.github/workflows/build-test.yml

+8-1
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,12 @@ jobs:
3030
testbench: 6.*
3131
phpunit: 9.*
3232

33+
services:
34+
stripemock:
35+
image: stripemock/stripe-mock:latest
36+
ports:
37+
- 12111
38+
3339
steps:
3440
- name: Checkout code
3541
uses: actions/checkout@v1
@@ -54,6 +60,7 @@ jobs:
5460
run: vendor/bin/phpunit
5561
env:
5662
STRIPE_TEST_SECRET: "${{ secrets.STRIPE_SECRET }}"
63+
STRIPE_API_BASE: "127.0.0.1:${{ job.services.stripemock.ports[12111] }}"
5764

5865
- name: Send Slack notification
5966
uses: 8398a7/action-slack@v3
@@ -63,6 +70,6 @@ jobs:
6370
author_name: PHP ${{ matrix.php }}, Laravel ${{ matrix.laravel }}
6471
fields: repo,message,commit,author,eventName,workflow
6572
env:
66-
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK }}
73+
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
6774
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6875
MATRIX_CONTEXT: ${{ toJson(matrix) }}

.github/workflows/lint.yml

+57
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
name: Lint
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
8+
jobs:
9+
phpcs:
10+
name: PHPCS
11+
12+
continue-on-error: false
13+
14+
runs-on: ubuntu-latest
15+
16+
steps:
17+
- uses: actions/checkout@v2
18+
19+
- name: Setup PHP
20+
uses: shivammathur/setup-php@v2
21+
with:
22+
php-version: 8.0
23+
extensions: posix, dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick
24+
coverage: none
25+
26+
- name: Install dependencies
27+
run: |
28+
composer config "http-basic.nova.laravel.com" "${{ secrets.NOVA_USERNAME }}" "${{ secrets.NOVA_PASSWORD }}"
29+
composer upgrade --no-interaction --no-suggest
30+
31+
- name: PHP-8 compatible PHPCS
32+
run: vendor/bin/phpcs
33+
34+
tlint:
35+
name: TLint
36+
37+
continue-on-error: false
38+
39+
runs-on: ubuntu-latest
40+
41+
steps:
42+
- uses: actions/checkout@v1
43+
44+
- name: Setup PHP
45+
uses: shivammathur/setup-php@v2
46+
with:
47+
php-version: 8.0
48+
extensions: posix, dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick
49+
coverage: none
50+
51+
- name: Install dependencies
52+
run: |
53+
composer config "http-basic.nova.laravel.com" "${{ secrets.NOVA_USERNAME }}" "${{ secrets.NOVA_PASSWORD }}"
54+
composer install --no-interaction --no-suggest
55+
56+
- name: Tlint Lint
57+
run: vendor/bin/tlint

.phpcs.xml.dist

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<?xml version="1.0"?>
2+
<ruleset>
3+
<file>src</file>
4+
<file>routes</file>
5+
<file>tests</file>
6+
7+
<rule ref="Tighten"/>
8+
<rule ref="PSR12.Classes.ClassInstantiation.MissingParentheses">
9+
<exclude-pattern>*.php</exclude-pattern>
10+
</rule>
11+
</ruleset>

charges-detail.png

76.4 KB
Loading

charges-index.png

158 KB
Loading

composer.json

+13-4
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"description": "A tool to create a quick Stripe dashboard in your Laravel Nova admin panels",
44
"keywords": [
55
"tightenco",
6+
"tighten",
67
"laravel",
78
"nova",
89
"stripe"
@@ -12,6 +13,10 @@
1213
{
1314
"name": "Samantha Geitz",
1415
"email": "[email protected]"
16+
},
17+
{
18+
"name": "Alison Kirk",
19+
"email": "[email protected]"
1520
}
1621
],
1722
"repositories": [
@@ -25,10 +30,11 @@
2530
"stripe/stripe-php": ">=5.0"
2631
},
2732
"require-dev": {
28-
"phpunit/phpunit": "9.5.*",
29-
"orchestra/testbench": ">=3.6.x-dev",
3033
"laravel/framework": ">=6.20.26",
31-
"laravel/nova": "*@dev"
34+
"laravel/nova": "<4",
35+
"orchestra/testbench": ">=3.6.x-dev",
36+
"phpunit/phpunit": "9.5.*",
37+
"tightenco/duster": "^0.3.2"
3238
},
3339
"autoload": {
3440
"psr-4": {
@@ -48,7 +54,10 @@
4854
}
4955
},
5056
"config": {
51-
"sort-packages": true
57+
"sort-packages": true,
58+
"allow-plugins": {
59+
"dealerdirect/phpcodesniffer-composer-installer": true
60+
}
5261
},
5362
"minimum-stability": "dev",
5463
"prefer-stable": true

customers-detail.png

210 KB
Loading

customers-index.png

173 KB
Loading

0 commit comments

Comments
 (0)