Feature/env variables override config #3858
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
paths: | |
- '.github/workflows/*' | |
- 'composer.json' | |
- 'composer.lock' | |
- '**.php' | |
- '**.js' | |
- '**.xml' | |
- '.php-cs-fixer.dist.php' | |
- '.phpcs.xml.dist' | |
- '.phpcs.ecg.xml.dist' | |
- '.phpcs.php.xml.dist' | |
- 'phpstan.dist.neon' | |
- 'phpstan.dist.baseline.neon' | |
pull_request: | |
paths: | |
- '.github/workflows/*' | |
- 'composer.json' | |
- 'composer.lock' | |
- '**.php' | |
- '**.js' | |
- '**.xml' | |
- '.php-cs-fixer.dist.php' | |
- '.phpcs.xml.dist' | |
- '.phpcs.ecg.xml.dist' | |
- '.phpcs.php.xml.dist' | |
- 'phpstan.dist.neon' | |
- 'phpstan.dist.baseline.neon' | |
jobs: | |
debug: | |
name: Debug | |
runs-on: [ubuntu-latest] | |
steps: | |
- name: Dump GitHub context | |
env: | |
GITHUB_CONTEXT: ${{ toJSON(github) }} | |
run: echo "$GITHUB_CONTEXT" | |
check: | |
name: Check files | |
uses: ./.github/workflows/check-files.yml | |
composer: | |
name: Composer | |
needs: [check] | |
# if: | | |
# needs.check.outputs.composer > 0 || | |
# needs.check.outputs.workflow > 0 | |
uses: ./.github/workflows/composer.yml | |
code_ql: | |
name: Code-QL | |
needs: [check] | |
if: | | |
needs.check.outputs.js > 0 || | |
needs.check.outputs.composer > 0 || | |
needs.check.outputs.workflow > 0 | |
uses: ./.github/workflows/codeql-analysis.yml | |
phpcs: | |
name: PHP CS | |
needs: [check, composer] | |
if: | | |
needs.check.outputs.php > 0 || | |
needs.check.outputs.phpcs > 0 || | |
needs.check.outputs.composer > 0 || | |
needs.check.outputs.workflow > 0 | |
uses: ./.github/workflows/phpcs.yml | |
php-cs-fixer: | |
name: PHP CS Fixer | |
needs: [check, composer] | |
if: | | |
needs.check.outputs.php > 0 || | |
needs.check.outputs.php-cs-fixer > 0 || | |
needs.check.outputs.composer > 0 || | |
needs.check.outputs.workflow > 0 | |
uses: ./.github/workflows/php-cs-fixer.yml | |
phpstan: | |
name: PHPStan | |
needs: [check, composer] | |
if: | | |
needs.check.outputs.php > 0 || | |
needs.check.outputs.phpstan > 0 || | |
needs.check.outputs.composer > 0 || | |
needs.check.outputs.workflow > 0 | |
uses: ./.github/workflows/phpstan.yml | |
# DOES NOT run by default | |
# runs on schedule or when worklfow changed | |
syntax_php: | |
name: PHP Syntax | |
needs: [check, phpcs, php-cs-fixer] | |
if: needs.check.outputs.workflow > 0 | |
uses: ./.github/workflows/syntax-php.yml | |
syntax_xml: | |
name: XML Syntax | |
needs: [check] | |
if: needs.check.outputs.xml > 0 | |
uses: ./.github/workflows/syntax-xml.yml | |
# DOES NOT run by default | |
# runs on schedule or when worklfow or unit tests changed | |
sonar: | |
name: Unit Tests (Sonar) | |
needs: [check, phpcs, php-cs-fixer] | |
if: | | |
needs.check.outputs.phpunit-test > 0 || | |
needs.check.outputs.phpunit > 0 || | |
needs.check.outputs.sonar > 0 || | |
needs.check.outputs.workflow > 0 | |
uses: ./.github/workflows/sonar.yml | |
# DOES NOT run by default | |
# runs on schedule or when worklfow or unit tests changed | |
unit_tests: | |
name: Unit Tests (OpenMage) | |
needs: [check, sonar] | |
if: | | |
needs.check.outputs.phpunit-test > 0 || | |
needs.check.outputs.phpunit > 0 || | |
needs.check.outputs.workflow > 0 | |
uses: ./.github/workflows/phpunit.yml |