Skip to content

Commit

Permalink
added brace possition
Browse files Browse the repository at this point in the history
  • Loading branch information
Kim-the-Diamond committed Oct 1, 2024
1 parent 31dbc7b commit 812fe30
Show file tree
Hide file tree
Showing 4 changed files with 61 additions and 6 deletions.
50 changes: 50 additions & 0 deletions packages/builder/.github/pest.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@

on:
pull_request:
branches:
- main
push:
branches:
- main
- "feature/**"

jobs:
test:
runs-on: ${{ matrix.os }}
env:
DB_CONNECTION: sqlite
DB_DATABASE: :memory:
APP_KEY: base64:1NxfrNErQ0vo1ZnPcLeVhnE7tOZdKlKiFORzPA92krM=
strategy:
fail-fast: true
matrix:
os: [ubuntu-latest]
php: [8.2]
laravel: [10.*, 11.*]
stability: [prefer-lowest, prefer-stable]
include:
- laravel: 10.*
testbench: 8.*
- laravel: 11.*
testbench: 9.*

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


steps:

- name: Checkout code
uses: actions/checkout@v4

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: "8.2"
coverage: none

- name: Install dependencies
run: |
composer update
- name: Run Pest
run: ./vendor/bin/pest
5 changes: 0 additions & 5 deletions packages/builder/tests/Pest.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,3 @@
| global functions to help you to reduce the number of lines of code in your test files.
|
*/

function something()
{
// ..
}
4 changes: 3 additions & 1 deletion packages/builder/tests/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,7 @@ protected function setUp(): void
$this->actingAs(User::factory()->create());
}

protected function getEnvironmentSetUp($app) {}
protected function getEnvironmentSetUp($app)
{
}
}
8 changes: 8 additions & 0 deletions pint.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"preset": "laravel",
"rules": {
"braces": {
"position_after_functions_and_oop_constructs": "next"
}
}
}

0 comments on commit 812fe30

Please sign in to comment.