Add stack_number on network equipments components #799
Workflow file for this run
This file contains hidden or 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: Linux | |
| on: | |
| push: | |
| branches: | |
| - master | |
| - 'feature/*' | |
| - 'fix/*' | |
| pull_request: | |
| jobs: | |
| ubuntu-latest: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| php-versions: [ '7.4', '8.0', '8.1', '8.2', '8.3', '8.4' ] | |
| coverage: [none] | |
| fail-fast: false | |
| name: PHP ${{ matrix.php-versions }} on ubuntu-latest | |
| steps: | |
| - name: PHP | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: ${{ matrix.php-versions }} | |
| tools: composer | |
| coverage: ${{ matrix.coverage }} | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Install 3rd party deps | |
| run: composer install --no-progress --no-interaction --ignore-platform-reqs | |
| - name: Build hardware JSONs | |
| run: | | |
| bin/build_hw_jsons | |
| rm data/*.json | |
| - name: Schema lint | |
| run: vendor/bin/jsonlint inventory.schema.json | |
| - name: XML well formed | |
| run: | | |
| sudo apt update | |
| sudo apt --fix-broken install | |
| sudo apt-get install expat | |
| xmlwf tests/data/*.xml | |
| - name: PSR12 | |
| run: | | |
| vendor/bin/phpcs --standard=PSR12 lib/php/* | |
| - name: Run code static analysis | |
| run: | | |
| vendor/bin/phpstan analyze --ansi --no-interaction --no-progress | |
| - name: Conversions tests | |
| run: for i in `ls tests/data/*.xml`; do ./bin/convert $i || exit 1; done | |
| - name: Examples validation tests | |
| run: for i in `ls examples/*.json`; do ./bin/validate $i || exit 1; done | |
| - name: Unit tests | |
| run: vendor/bin/phpunit --process-isolation --test-suffix=.php --bootstrap tests/bootstrap.php tests/Glpi |