Skip to content

don't exit CI pipeline if no module id is provided #39

don't exit CI pipeline if no module id is provided

don't exit CI pipeline if no module id is provided #39

Workflow file for this run

name: OXID Plugin CI
on:
push:
branches:
- 'rel_*'
- 'main'
- 'master'
pull_request:
workflow_dispatch:
inputs:
debug:
required: false
default: "false"
jobs:
plugin-tests:
runs-on: ubuntu-latest
services:
mariadb:
image: mariadb:10.6
env:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: oxid
MYSQL_USER: oxid
MYSQL_PASSWORD: oxid
ports:
- 3306:3306
options: >-
--health-cmd="mysqladmin ping --silent"
--health-interval=10s
--health-timeout=5s
--health-retries=5
strategy:
fail-fast: false
matrix:
include:
- oxid_ref: "dev-b-7.1-ce"
php: "8.1"
name: OXID ${{ matrix.oxid_ref }} in PHP ${{ matrix.php }} tests
env:
DB_HOST: 127.0.0.1
DB_NAME: oxid
DB_USER: oxid
DB_PASS: oxid
steps:
- name: Checkout test plugin repository
uses: actions/checkout@v4
with:
repository: d3datadevelopment/CI-Tests
- name: Checkout CI Actions
uses: actions/checkout@v4
with:
repository: d3datadevelopment/CI-Actions
path: .ci-actions
- name: Run OXID tests
uses: ./.ci-actions/oxid-plugin-test
with:
php_version: ${{ matrix.php }}
oxid_ref: ${{ matrix.oxid_ref }}
sourceguardian: "true"
composer_package_name: "d3/ci-test"
oxid_module_ids: "d3citest"
test_suites: "unit,integration"
debug: ${{ github.event.inputs.debug }}
syntax_check_paths: "Tests"
report-status:
runs-on: ubuntu-latest
needs: plugin-tests
if: always()
steps:
- name: Report CI status
uses: ./.ci-actions/status-reporter
with:
api_status_endpoint: "${{ vars.GITEA_API }}${{ github.sha }}"
auth_token: ${{ secrets.GITEA_TOKEN }}
state: ${{ needs.plugin-tests.result }}
description: "CI result: ${{ needs.plugin-tests.result }}"
target_url: "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"