mirror of
https://github.com/pluginsGLPI/example.git
synced 2025-08-24 06:35:49 +02:00
enable CI and fix phstanneon
This commit is contained in:
35
.github/workflows/continuous-integration.yml
vendored
Normal file
35
.github/workflows/continuous-integration.yml
vendored
Normal file
@@ -0,0 +1,35 @@
|
|||||||
|
name: "Continuous integration"
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- "main"
|
||||||
|
tags:
|
||||||
|
- "*"
|
||||||
|
pull_request:
|
||||||
|
schedule:
|
||||||
|
- cron: "0 0 * * *"
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
concurrency:
|
||||||
|
group: "${{ github.workflow }}-${{ github.ref }}"
|
||||||
|
cancel-in-progress: true
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
generate-ci-matrix:
|
||||||
|
name: "Generate CI matrix"
|
||||||
|
uses: "glpi-project/plugin-ci-workflows/.github/workflows/generate-ci-matrix.yml@v1"
|
||||||
|
with:
|
||||||
|
glpi-version: "11.0.x"
|
||||||
|
ci:
|
||||||
|
name: "GLPI ${{ matrix.glpi-version }} - php:${{ matrix.php-version }} - ${{ matrix.db-image }}"
|
||||||
|
needs: "generate-ci-matrix"
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix: ${{ fromJson(needs.generate-ci-matrix.outputs.matrix) }}
|
||||||
|
uses: "glpi-project/plugin-ci-workflows/.github/workflows/continuous-integration.yml@v1"
|
||||||
|
with:
|
||||||
|
plugin-key: "fields"
|
||||||
|
glpi-version: "${{ matrix.glpi-version }}"
|
||||||
|
php-version: "${{ matrix.php-version }}"
|
||||||
|
db-image: "${{ matrix.db-image }}"
|
@@ -8,6 +8,7 @@ parameters:
|
|||||||
- hook.php
|
- hook.php
|
||||||
- setup.php
|
- setup.php
|
||||||
- report.php
|
- report.php
|
||||||
|
- stat.php
|
||||||
scanDirectories:
|
scanDirectories:
|
||||||
- ../../inc
|
- ../../inc
|
||||||
- ../../src
|
- ../../src
|
||||||
|
Reference in New Issue
Block a user