Skip to content
Merged
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
346 changes: 346 additions & 0 deletions .git-hooks-matomo/pre-push

Large diffs are not rendered by default.

23 changes: 23 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Plugins CI

on:
pull_request:
types: [opened, synchronize, reopened, edited]
push:
branches:
- '**.x-dev'
workflow_dispatch:

permissions:
actions: read
contents: read
pull-requests: read

jobs:
ci:
uses: matomo-org/plugin-ci-workflows/.github/workflows/plugin-ci.yml@main
with:
plugin-name: TreemapVisualization
verify-hook: true
secrets:
TESTS_ACCESS_TOKEN: ${{ secrets.TESTS_ACCESS_TOKEN }}
32 changes: 0 additions & 32 deletions .github/workflows/matomo-ai-checklist.yml

This file was deleted.

43 changes: 0 additions & 43 deletions .github/workflows/phpcs.yml

This file was deleted.

38 changes: 38 additions & 0 deletions .github/workflows/weekly-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# Releases this plugin from its dev branch once a week when plugin.json carries an untagged version
# whose CHANGELOG.md entry is undated. The logic lives in matomo-org/plugin-ci-workflows; see the
# "Weekly release" section of its README.md.

name: Weekly release

on:
schedule:
# Monday, so the release is dated that Monday. Keeps the minute and hour of matomo-tests.yml's
# cron, so the fleet stays staggered across the window.
- cron: '5 2 * * 1'
workflow_dispatch:
inputs:
all-branches:
description: "Also release the other maintained branches, as the schedule does"
type: boolean
default: false

permissions: {}

jobs:
release:
# Granted here because permissions can only be reduced down a call chain, never elevated.
permissions:
actions: write
contents: write
pull-requests: write
uses: matomo-org/plugin-ci-workflows/.github/workflows/plugin-dev-release.yml@main

# A dispatched run must not dispatch again, or the branches would keep dispatching each other.
other-branches:
if: github.event_name == 'schedule' || inputs.all-branches
permissions:
actions: write
contents: read
uses: matomo-org/plugin-ci-workflows/.github/workflows/plugin-branch-sweep.yml@main
with:
workflow-file: weekly-release.yml
6 changes: 6 additions & 0 deletions phpstan/phpstan.created.neon
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
includes:
- ../phpstan.neon
parameters:
# new files carry no pre-existing debt, so hold them to the strictest level
level: 9
tmpDir: /tmp/phpstan/TreemapVisualization/created
4 changes: 4 additions & 0 deletions phpstan/phpstan.modified.neon
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
includes:
- ../phpstan.neon
parameters:
tmpDir: /tmp/phpstan/TreemapVisualization/modified
12 changes: 3 additions & 9 deletions tests/System/CheckDirectDependencyUseCommandTest.php
Original file line number Diff line number Diff line change
@@ -1,17 +1,11 @@
<?php

/**
* Copyright (C) InnoCraft Ltd - All rights reserved.
* Matomo - free/libre analytics platform
*
* NOTICE: All information contained herein is, and remains the property of InnoCraft Ltd.
* The intellectual and technical concepts contained herein are protected by trade secret or copyright law.
* Redistribution of this information or reproduction of this material is strictly forbidden
* unless prior written permission is obtained from InnoCraft Ltd.
* @link https://matomo.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*
* You shall use this code only in accordance with the license agreement obtained from InnoCraft Ltd.
*
* @link https://www.innocraft.com/
* @license For license details see https://www.innocraft.com/license
*/

namespace Piwik\Plugins\TreemapVisualization\tests\System;
Expand Down
Loading