Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions console/InitCreatePlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,7 @@ public function makeStubs()
$this->makeStub('initcreateplugin/lang.stub', 'lang/pl/lang.php');
$this->makeStub('initcreateplugin/composer.stub', 'composer.json');
$this->makeStub('initcreateplugin/gitignore.stub', '.gitignore');
$this->makeStub('initcreateplugin/danger.stub', '.danger.php');
$this->makeStub('initcreateplugin/gitlab-ci.stub', '.gitlab-ci.yml');
}
}
15 changes: 15 additions & 0 deletions console/initcreateplugin/danger.stub
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?php

declare(strict_types=1);

use Initbiz\Linter\Classes\DangerConfigMaker;

include_once 'classes/DangerConfigMaker.php';

$configMaker = new DangerConfigMaker();

// Enable rules below

$configMaker->enableRule('dangerrules/VersionYamlUpdatedRule.php');

return $configMaker->getConfig();
32 changes: 32 additions & 0 deletions console/initcreateplugin/gitlab-ci.stub
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
include:
- component: $CI_SERVER_FQDN/operational/gitlab-ci-components/setup-project-playground@1
inputs:
octobercms_license_key: "${PLAYGROUND_LICENSE_KEY}"
github_machine_user_token: ${GITHUB_MACHINE_USER_TOKEN}
- component: $CI_SERVER_FQDN/operational/gitlab-ci-components/rules-mr-events@1

Tests:
extends:
- .rules-mr-events
- .setup-project-playground
script:
- composer require {{lower_author}}/{{lower_plugin}}-plugin:dev-${CI_MERGE_REQUEST_SOURCE_BRANCH_NAME}
- vendor/bin/pest --parallel --ci --bail

Linter:
extends:
- .rules-mr-events
- .setup-project-playground
script:
- composer require {{lower_author}}/{{lower_plugin}}-plugin:dev-${CI_MERGE_REQUEST_SOURCE_BRANCH_NAME}
- php artisan linter:code -b plugins/{{lower_author}}/{{lower_plugin}}

Danger-PHP:
extends:
- .rules-mr-events
image:
name: ghcr.io/shyim/danger-php:latest
entrypoint: [""]
script:
- apk add --no-cache git
- danger ci
2 changes: 2 additions & 0 deletions updates/version.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,5 @@
- "Browsing queue jobs and failed jobs tables from backend controller"
1.10.0:
- "Add InIT flavoured plugin test case, that fakes mailer, storage, etc."
1.11.0:
- "Add new stubs for create plugin"