CI for branch main #25
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-main | |
run-name: CI for branch main | |
on: | |
workflow_dispatch: | |
push: | |
branches-ignore: | |
- '1.0' | |
- '1.1' | |
- '2.0' | |
pull_request: | |
branches-ignore: | |
- '1.0' | |
- '1.1' | |
- '2.0' | |
jobs: | |
integrity: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
php: [ '8.1', '8.2' ] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Lint PHP | |
run: Build/Scripts/runTests.sh -p ${{ matrix.php }} -s lintPhp | |
- name: Composer validate | |
run: Build/Scripts/runTests.sh -p ${{ matrix.php }} -s composerValidate | |
composer: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
php: [ '8.1', '8.2' ] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Composer update | |
run: Build/Scripts/runTests.sh -p ${{ matrix.php }} -s composerUpdate | |
cgl: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
php: [ '8.1', '8.2' ] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Composer update | |
run: Build/Scripts/runTests.sh -p ${{ matrix.php }} -s composerUpdate | |
- name: CGL check | |
run: Build/Scripts/runTests.sh -p ${{ matrix.php }} -n -s cgl | |
- name: PHPStan | |
run: Build/Scripts/runTests.sh -p ${{ matrix.php }} -s phpstan | |
testsuite: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
php: [ '8.1', '8.2' ] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Composer update | |
run: Build/Scripts/runTests.sh -p ${{ matrix.php }} -s composerUpdate | |
- name: Unit testing | |
run: Build/Scripts/runTests.sh -p ${{ matrix.php }} -s unit |