Skip to content

Commit

Permalink
Merge pull request #57 from tighten/alk/v1-updates
Browse files Browse the repository at this point in the history
v1 updates
  • Loading branch information
faxblaster authored Oct 5, 2022
2 parents 3960165 + 9b1c59a commit 12c3570
Show file tree
Hide file tree
Showing 30 changed files with 679 additions and 3,361 deletions.
1 change: 1 addition & 0 deletions .env.testing.example
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
STRIPE_TEST_KEY=
STRIPE_TEST_SECRET=
STRIPE_API_BASE="stripemock:12111"
9 changes: 8 additions & 1 deletion .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,12 @@ jobs:
testbench: 6.*
phpunit: 9.*

services:
stripemock:
image: stripemock/stripe-mock:latest
ports:
- 12111

steps:
- name: Checkout code
uses: actions/checkout@v1
Expand All @@ -54,6 +60,7 @@ jobs:
run: vendor/bin/phpunit
env:
STRIPE_TEST_SECRET: "${{ secrets.STRIPE_SECRET }}"
STRIPE_API_BASE: "127.0.0.1:${{ job.services.stripemock.ports[12111] }}"

- name: Send Slack notification
uses: 8398a7/action-slack@v3
Expand All @@ -63,6 +70,6 @@ jobs:
author_name: PHP ${{ matrix.php }}, Laravel ${{ matrix.laravel }}
fields: repo,message,commit,author,eventName,workflow
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK }}
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
MATRIX_CONTEXT: ${{ toJson(matrix) }}
57 changes: 57 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
name: Lint

on:
push:
branches: [ main ]
pull_request:

jobs:
phpcs:
name: PHPCS

continue-on-error: false

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.0
extensions: posix, dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick
coverage: none

- name: Install dependencies
run: |
composer config "http-basic.nova.laravel.com" "${{ secrets.NOVA_USERNAME }}" "${{ secrets.NOVA_PASSWORD }}"
composer upgrade --no-interaction --no-suggest
- name: PHP-8 compatible PHPCS
run: vendor/bin/phpcs

tlint:
name: TLint

continue-on-error: false

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.0
extensions: posix, dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick
coverage: none

- name: Install dependencies
run: |
composer config "http-basic.nova.laravel.com" "${{ secrets.NOVA_USERNAME }}" "${{ secrets.NOVA_PASSWORD }}"
composer install --no-interaction --no-suggest
- name: Tlint Lint
run: vendor/bin/tlint
11 changes: 11 additions & 0 deletions .phpcs.xml.dist
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0"?>
<ruleset>
<file>src</file>
<file>routes</file>
<file>tests</file>

<rule ref="Tighten"/>
<rule ref="PSR12.Classes.ClassInstantiation.MissingParentheses">
<exclude-pattern>*.php</exclude-pattern>
</rule>
</ruleset>
Binary file modified charges-detail.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified charges-index.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
17 changes: 13 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"description": "A tool to create a quick Stripe dashboard in your Laravel Nova admin panels",
"keywords": [
"tightenco",
"tighten",
"laravel",
"nova",
"stripe"
Expand All @@ -12,6 +13,10 @@
{
"name": "Samantha Geitz",
"email": "samantha@tighten.co"
},
{
"name": "Alison Kirk",
"email": "alison.kirk@tighten.co"
}
],
"repositories": [
Expand All @@ -25,10 +30,11 @@
"stripe/stripe-php": ">=5.0"
},
"require-dev": {
"phpunit/phpunit": "9.5.*",
"orchestra/testbench": ">=3.6.x-dev",
"laravel/framework": ">=6.20.26",
"laravel/nova": "*@dev"
"laravel/nova": "<4",
"orchestra/testbench": ">=3.6.x-dev",
"phpunit/phpunit": "9.5.*",
"tightenco/duster": "^0.3.2"
},
"autoload": {
"psr-4": {
Expand All @@ -48,7 +54,10 @@
}
},
"config": {
"sort-packages": true
"sort-packages": true,
"allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": true
}
},
"minimum-stability": "dev",
"prefer-stable": true
Expand Down
Binary file added customers-detail.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added customers-index.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 12c3570

Please sign in to comment.