Fixing QA for tools (#226) #1040
ci.yaml
on: push
Matrix: Code linting
Matrix: Code quality assurance
Matrix: Code static analysis
Matrix: Test for mutants
Matrix: Build code for distribution
Matrix: Code tests
Matrix: Publish code distribution to Github packages
Matrix: Publish code distribution to NPM
Matrix: Code tests with code coverage
Annotations
22 warnings
Code linting (8.1, 18, ubuntu-latest)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
Code quality assurance (8.2, 18, ubuntu-latest)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
Code quality assurance (8.1, 18, ubuntu-latest)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
Code static analysis (8.2, 18, ubuntu-latest)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
Code linting (8.2, 18, ubuntu-latest)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
Code static analysis (8.1, 18, ubuntu-latest)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
Publish code distribution to Github packages (18, ubuntu-latest)
The following actions uses node12 which is deprecated and will be forced to run on node16: battila7/get-version-action@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
Publish code distribution to Github packages (18, ubuntu-latest)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
Publish code distribution to Github packages (18, ubuntu-latest)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
Publish code distribution to NPM (18, ubuntu-latest)
The following actions uses node12 which is deprecated and will be forced to run on node16: battila7/get-version-action@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
Publish code distribution to NPM (18, ubuntu-latest)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
Publish code distribution to NPM (18, ubuntu-latest)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
Test for mutants (8.2, ubuntu-latest):
src/Entities/Devices/Properties/Mapped.php#L164
Escaped Mutant for Mutator "InstanceOf_":
--- Original
+++ New
@@ @@
// phpcs:ignore SlevomatCodingStandard.Files.LineLength.LineTooLong
public function getDefault() : bool|float|int|string|DateTimeInterface|MetadataTypes\ButtonPayload|MetadataTypes\SwitchPayload|MetadataTypes\CoverPayload|null
{
- if (!$this->getParent() instanceof Variable) {
+ if (!true) {
throw new Exceptions\InvalidState('Reading default value is allowed only for variable parent properties');
}
return MetadataUtilities\ValueHelper::transformValueFromMappedParent($this->getDataType(), $this->getParent()->getDataType(), $this->getParent()->getDefault());
|
Test for mutants (8.2, ubuntu-latest):
src/Entities/Devices/Properties/Mapped.php#L195
Escaped Mutant for Mutator "InstanceOf_":
--- Original
+++ New
@@ @@
// phpcs:ignore SlevomatCodingStandard.Files.LineLength.LineTooLong
public function getValue() : bool|float|int|string|DateTimeInterface|MetadataTypes\ButtonPayload|MetadataTypes\SwitchPayload|MetadataTypes\CoverPayload|null
{
- if (!$this->getParent() instanceof Variable) {
+ if (!true) {
throw new Exceptions\InvalidState('Reading value is allowed only for variable parent properties');
}
return MetadataUtilities\ValueHelper::transformValueFromMappedParent($this->getDataType(), $this->getParent()->getDataType(), $this->getParent()->getValue());
|
Test for mutants (8.2, ubuntu-latest):
src/Entities/Devices/Properties/Mapped.php#L229
Escaped Mutant for Mutator "InstanceOf_":
--- Original
+++ New
@@ @@
*/
public function toArray() : array
{
- if ($this->getParent() instanceof Entities\Devices\Properties\Variable) {
+ if (true) {
return array_merge(parent::toArray(), ['parent' => $this->getParent()->getId()->toString(), 'default' => MetadataUtilities\ValueHelper::flattenValue($this->getDefault()), 'value' => MetadataUtilities\ValueHelper::flattenValue($this->getValue())]);
}
return array_merge(parent::toArray(), ['parent' => $this->getParent()->getId()->toString(), 'settable' => $this->isSettable(), 'queryable' => $this->isQueryable()]);
}
}
|
Test for mutants (8.2, ubuntu-latest):
src/Entities/Devices/Properties/Property.php#L98
Escaped Mutant for Mutator "PublicVisibility":
--- Original
+++ New
@@ @@
{
return $this->parent;
}
- public function setParent(self $property) : void
+ protected function setParent(self $property) : void
{
$this->parent = $property;
}
|
Test for mutants (8.2, ubuntu-latest):
src/Models/Configuration/Channels/Controls/Repository.php#L63
Escaped Mutant for Mutator "Concat":
--- Original
+++ New
@@ @@
{
try {
$document = $this->cache->load($this->createKeyOne($queryObject), function () use($queryObject) : MetadataDocuments\DevicesModule\ChannelControl|false {
- $space = $this->builder->load()->find('.' . Devices\Constants::DATA_STORAGE_CONTROLS_KEY . '.*');
+ $space = $this->builder->load()->find(Devices\Constants::DATA_STORAGE_CONTROLS_KEY . '.' . '.*');
$result = $queryObject->fetch($space);
if (!is_array($result) || $result === []) {
return false;
|
Test for mutants (8.2, ubuntu-latest):
src/Models/Configuration/Channels/Controls/Repository.php#L63
Escaped Mutant for Mutator "ConcatOperandRemoval":
--- Original
+++ New
@@ @@
{
try {
$document = $this->cache->load($this->createKeyOne($queryObject), function () use($queryObject) : MetadataDocuments\DevicesModule\ChannelControl|false {
- $space = $this->builder->load()->find('.' . Devices\Constants::DATA_STORAGE_CONTROLS_KEY . '.*');
+ $space = $this->builder->load()->find(Devices\Constants::DATA_STORAGE_CONTROLS_KEY . '.*');
$result = $queryObject->fetch($space);
if (!is_array($result) || $result === []) {
return false;
|
Test for mutants (8.2, ubuntu-latest):
src/Models/Configuration/Channels/Controls/Repository.php#L85
Escaped Mutant for Mutator "InstanceOf_":
--- Original
+++ New
@@ @@
if ($document === false) {
return null;
}
- if (!$document instanceof MetadataDocuments\DevicesModule\ChannelControl) {
+ if (!true) {
throw new Exceptions\InvalidState('Could not load document');
}
return $document;
|
Test for mutants (8.2, ubuntu-latest):
src/Models/Configuration/Channels/Controls/Repository.php#L109
Escaped Mutant for Mutator "Concat":
--- Original
+++ New
@@ @@
{
try {
$documents = $this->cache->load($this->createKeyAll($queryObject), function () use($queryObject) : array {
- $space = $this->builder->load()->find('.' . Devices\Constants::DATA_STORAGE_CONTROLS_KEY . '.*');
+ $space = $this->builder->load()->find(Devices\Constants::DATA_STORAGE_CONTROLS_KEY . '.' . '.*');
$result = $queryObject->fetch($space);
if (!is_array($result)) {
return [];
|
Test for mutants (8.2, ubuntu-latest):
src/Models/Configuration/Channels/Controls/Repository.php#L109
Escaped Mutant for Mutator "ConcatOperandRemoval":
--- Original
+++ New
@@ @@
{
try {
$documents = $this->cache->load($this->createKeyAll($queryObject), function () use($queryObject) : array {
- $space = $this->builder->load()->find('.' . Devices\Constants::DATA_STORAGE_CONTROLS_KEY . '.*');
+ $space = $this->builder->load()->find(Devices\Constants::DATA_STORAGE_CONTROLS_KEY . '.*');
$result = $queryObject->fetch($space);
if (!is_array($result)) {
return [];
|
Test for mutants (8.2, ubuntu-latest):
src/Models/Configuration/Channels/Controls/Repository.php#L117
Escaped Mutant for Mutator "UnwrapArrayMap":
--- Original
+++ New
@@ @@
if (!is_array($result)) {
return [];
}
- return array_map(fn(stdClass $item): MetadataDocuments\DevicesModule\ChannelControl => $this->entityFactory->create(MetadataDocuments\DevicesModule\ChannelControl::class, $item), $result);
+ return $result;
});
} catch (Throwable $ex) {
throw new Exceptions\InvalidState('Could not load documents', $ex->getCode(), $ex);
|
Artifacts
Produced during runtime
Name | Size | |
---|---|---|
Logs - Mutations
Expired
|
4.44 MB |
|
js-dist
Expired
|
5.33 MB |
|