diff --git a/.github/workflows/update-js.yml b/.github/workflows/update-js.yml new file mode 100644 index 0000000..82feefd --- /dev/null +++ b/.github/workflows/update-js.yml @@ -0,0 +1,17 @@ +name: Update JS + +on: + workflow_dispatch: + # Run on a schedule of once per quarter + schedule: + - cron: '55 23 1 */3 *' + +jobs: + update-js: + name: Update JS + # Only run cron on the colymba account + if: (github.event_name == 'schedule' && github.repository_owner == 'colymba') || (github.event_name != 'schedule') + runs-on: ubuntu-latest + steps: + - name: Update JS + uses: silverstripe/gha-update-js@v1 diff --git a/.upgrade.yml b/.upgrade.yml deleted file mode 100644 index be82823..0000000 --- a/.upgrade.yml +++ /dev/null @@ -1,10 +0,0 @@ -mappings: - GridFieldBulkActionDeleteHandler: Colymba\BulkManager\BulkAction\DeleteHandler - GridFieldBulkActionEditHandler: Colymba\BulkManager\BulkAction\EditHandler - GridFieldBulkActionHandler: Colymba\BulkManager\BulkAction\Handler - GridFieldBulkActionUnlinkHandler: Colymba\BulkManager\BulkAction\UnlinkHandler - GridFieldBulkManager: Colymba\BulkManager\BulkManager - BulkUploadField: Colymba\BulkUpload\BulkUploadField - GridFieldBulkImageUpload: Colymba\BulkUpload\GridFieldBulkImageUpload - GridFieldBulkUpload: Colymba\BulkUpload\BulkUploader - GridFieldBulkUpload_Request: Colymba\BulkUpload\BulkUploadHandler diff --git a/composer.json b/composer.json index 70eb9ce..dedf6b0 100644 --- a/composer.json +++ b/composer.json @@ -3,7 +3,12 @@ "type": "silverstripe-vendormodule", "description": "SilverStripe GridField component to upload images/files and edit records in bulk", "homepage": "https://github.com/colymba/GridFieldBulkEditingTools", - "keywords": ["silverstripe", "bulk upload", "image upload", "gridfield bulk upload"], + "keywords": [ + "silverstripe", + "bulk upload", + "image upload", + "gridfield bulk upload" + ], "license": "BSD-3-Clause", "authors": [ { @@ -34,5 +39,9 @@ "Colymba\\BulkManager\\": "src/BulkManager/", "Colymba\\BulkUpload\\": "src/BulkUploader/" } + }, + "require-dev": { + "silverstripe/standards": "^1", + "phpstan/extension-installer": "^1.3" } } diff --git a/phpstan.neon.dist b/phpstan.neon.dist new file mode 100644 index 0000000..beb9de3 --- /dev/null +++ b/phpstan.neon.dist @@ -0,0 +1,3 @@ +parameters: + paths: + - src