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
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: CustomVariables
# PHPStan has never run here and there is no phpstan.neon to run it with;
# adding one is a decision of its own.
skip-phpstan: true
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.

25 changes: 25 additions & 0 deletions .github/workflows/weekly-branch-sweep.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Dispatches this plugin's build for each maintained branch that is not the default one, because
# GitHub only ever runs `schedule` from the default branch's copy of a workflow file. The logic
# lives in matomo-org/plugin-ci-workflows; see the "Branch sweep" section of its README.md for
# why this dispatches rather than building another branch's source here.

name: Weekly branch sweep

on:
schedule:
# Sunday, so it does not compete with this plugin's own Saturday build. Keeps the minute and
# hour of matomo-tests.yml's cron, so the fleet stays staggered across the window.
- cron: '0 3 * * 0'
workflow_dispatch:

permissions: {}

jobs:
sweep:
# Granted by the caller because permissions can only be maintained or reduced down a call
# chain, never elevated: the called workflow declares these too, but that can only cap them,
# not supply them, so without this block the dispatch is unauthorised.
permissions:
actions: write
contents: read
uses: matomo-org/plugin-ci-workflows/.github/workflows/plugin-branch-sweep.yml@main
Loading