diff --git a/.editorconfig b/.editorconfig deleted file mode 100644 index 6537ca4..0000000 --- a/.editorconfig +++ /dev/null @@ -1,15 +0,0 @@ -root = true - -[*] -charset = utf-8 -end_of_line = lf -insert_final_newline = true -indent_style = space -indent_size = 4 -trim_trailing_whitespace = true - -[*.md] -trim_trailing_whitespace = false - -[*.{yml,yaml}] -indent_size = 2 diff --git a/.editorconfig b/.editorconfig new file mode 120000 index 0000000..0cb2603 --- /dev/null +++ b/.editorconfig @@ -0,0 +1 @@ +vendor/rapidez/coding-standards/.editorconfig \ No newline at end of file diff --git a/.github/workflows/analyse.yml b/.github/workflows/analyse.yml new file mode 100644 index 0000000..cc3928c --- /dev/null +++ b/.github/workflows/analyse.yml @@ -0,0 +1,25 @@ +name: analyse + +on: ["push", "pull_request"] + +jobs: + test: + uses: rapidez/workflows/.github/workflows/analyse.yml@master + strategy: + fail-fast: true + matrix: + os: [ubuntu-latest] + php: [8.4, 8.5] + laravel: [12.*, 13.*] + stability: [prefer-stable, prefer-lowest] + include: + - laravel: 12.* + testbench: 10.* + - laravel: 13.* + testbench: 11.* + with: + os: ${{ matrix.os }} + php: ${{ matrix.php }} + laravel: ${{ matrix.laravel }} + testbench: ${{ matrix.testbench }} + stability: ${{ matrix.stability }} diff --git a/.github/workflows/changelog.yml b/.github/workflows/changelog.yml index 43351a6..2d5129d 100644 --- a/.github/workflows/changelog.yml +++ b/.github/workflows/changelog.yml @@ -7,26 +7,10 @@ on: jobs: generate: - runs-on: ubuntu-latest - - steps: - - name: Checkout code - uses: actions/checkout@v3 - with: - ref: ${{ github.event.release.target_commitish }} - token: ${{ secrets.RAPIDEZ_ACTIONS_ACCOUNT_PAT }} - - - name: Generate changelog - uses: justbetter/generate-changelogs-action@main - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - repository: ${{ github.repository }} - sha: ${{ github.head_ref || github.ref_name }} - - - name: Commit CHANGELOG - uses: stefanzweifel/git-auto-commit-action@v4 - with: - branch: ${{ github.event.release.target_commitish }} - commit_message: Update CHANGELOG - file_pattern: CHANGELOG.md + uses: rapidez/workflows/.github/workflows/changelog.yml@master + with: + repository: ${{ github.repository }} + branch: ${{ github.event.release.target_commitish }} + ref: ${{ github.head_ref || github.ref_name }} + token: ${{ secrets.RAPIDEZ_ACTIONS_ACCOUNT_PAT }} + github-token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/duster-fix-blame.yml b/.github/workflows/duster-fix-blame.yml new file mode 100644 index 0000000..2dad61a --- /dev/null +++ b/.github/workflows/duster-fix-blame.yml @@ -0,0 +1,14 @@ +name: Duster + +# Commits made in here will not trigger any workflows +# Checkout Duster's documentation for a workaround + +on: + push: + +jobs: + duster: + uses: rapidez/workflows/.github/workflows/duster-fix-blame.yml@master + with: + ref: ${{ github.head_ref }} + repo-token: ${{ secrets.RAPIDEZ_ACTIONS_ACCOUNT_PAT }} diff --git a/.github/workflows/translations.yml b/.github/workflows/translations.yml index 1e4a4bb..ffc8cff 100644 --- a/.github/workflows/translations.yml +++ b/.github/workflows/translations.yml @@ -9,18 +9,4 @@ on: jobs: translations: - runs-on: ubuntu-latest - - steps: - - name: Checkout code - uses: actions/checkout@v2 - - name: Setup PHP - uses: shivammathur/setup-php@v2 - with: - php-version: '8.3' - extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick - coverage: none - - name: Install dependencies - run: composer install --prefer-dist --no-interaction - - name: Check translations - uses: rapidez/laravel-translation-checker@master + uses: rapidez/workflows/.github/workflows/translations.yml@master diff --git a/composer.json b/composer.json index 61dd395..369a3c5 100644 --- a/composer.json +++ b/composer.json @@ -17,8 +17,8 @@ "minimum-stability": "dev", "prefer-stable": true, "require": { - "php": "^8.3", - "rapidez/core": "^4.0" + "php": "^8.2", + "rapidez/core": "^5.0" }, "autoload": { "psr-4": { @@ -26,7 +26,10 @@ } }, "config": { - "sort-packages": true + "sort-packages": true, + "allow-plugins": { + "php-http/discovery": true + } }, "extra": { "laravel": { @@ -34,5 +37,9 @@ "VendorName\\Skeleton\\SkeletonServiceProvider" ] } + }, + "require-dev": { + "larastan/larastan": "^3.9", + "rapidez/coding-standards": "^1.0" } } diff --git a/phpstan.neon b/phpstan.neon new file mode 100644 index 0000000..46d7985 --- /dev/null +++ b/phpstan.neon @@ -0,0 +1,7 @@ +includes: + - ./vendor/rapidez/coding-standards/phpstan.neon + +parameters: + level: 1 + paths: + - src/ diff --git a/resources/js/components/Example.vue b/resources/js/components/Example.vue index 4c9eb65..825e4a6 100644 --- a/resources/js/components/Example.vue +++ b/resources/js/components/Example.vue @@ -1,7 +1,7 @@