diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..ceb034e --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,18 @@ +version: 2 +updates: + - package-ecosystem: github-actions + directory: / + target-branch: develop + schedule: + interval: weekly + day: friday + open-pull-requests-limit: 5 + cooldown: + default-days: 7 + groups: + github-actions: + patterns: ["*"] + labels: [dependencies, github-actions] + commit-message: + prefix: ci + include: scope diff --git a/.github/workflows/plugin-ci-workflow.yml b/.github/workflows/plugin-ci-workflow.yml index bdbd889..cd42474 100644 --- a/.github/workflows/plugin-ci-workflow.yml +++ b/.github/workflows/plugin-ci-workflow.yml @@ -85,7 +85,7 @@ jobs: run: sudo apt-get update - name: Install System Dependencies - run: sudo apt-get install -y apache2 snmp snmpd rrdtool fping libapache2-mod-php${{ matrix.php }} + run: sudo apt-get install -y apache2 snmp snmpd rrdtool fping - name: Start SNMPD Agent and Test run: | @@ -164,7 +164,14 @@ jobs: run: | cd ${{ github.workspace }}/cacti sudo php cli/install_cacti.php --accept-eula --install --force - + + - name: Install Mactrack Composer Dependencies + run: | + cd ${{ github.workspace }}/cacti/plugins/mactrack + if [ -f composer.json ]; then + sudo composer install --no-dev --prefer-dist --no-progress --no-interaction + fi + - name: Install mactrack Plugin run: | cd ${{ github.workspace }}/cacti