|
1 | | -name: PHP Unit Tests |
2 | | - |
3 | 1 | on: |
4 | 2 | workflow_call: |
5 | 3 | inputs: |
|
8 | 6 | required: true |
9 | 7 |
|
10 | 8 | jobs: |
11 | | - test: |
12 | | - name: Unit tests with php ${{ inputs.php-version }} |
13 | | - runs-on: ubuntu-latest |
14 | | - |
15 | | - steps: |
16 | | - - name: Checkout code base |
17 | | - uses: actions/checkout@v4 |
| 9 | + test: |
| 10 | + name: Unit tests PHP ${{ inputs.php-version }} |
| 11 | + runs-on: ubuntu-latest |
| 12 | + - name: Checkout |
| 13 | + uses: actions/checkout@v4 |
| 14 | + with: |
| 15 | + fetch-depth: '1' |
18 | 16 |
|
19 | | - - name: Setup PHP |
20 | | - uses: shivammathur/setup-php@v2 |
21 | | - with: |
22 | | - php-version: ${{ inputs.php-version }} |
23 | | - tools: phpunit |
| 17 | + - name: Set up PHP |
| 18 | + uses: shivammathur/setup-php@v2 |
| 19 | + with: |
| 20 | + php-version: ${{ inputs.php-version }} |
| 21 | + tools: phpunit |
24 | 22 |
|
25 | | - - name: Set up Icinga Web |
26 | | - run: | |
27 | | - git clone --depth 1 https://github.com/Icinga/icingaweb2.git _icingaweb2 |
28 | | - ln -s `pwd` _icingaweb2/modules/icingadb |
| 23 | + - name: Set up Icinga Web |
| 24 | + run: | |
| 25 | + git clone --depth 1 https://github.com/Icinga/icingaweb2.git _icingaweb2 |
| 26 | + ln -s `pwd` _icingaweb2/modules/icingadb |
29 | 27 |
|
30 | | - - name: Set up Libraries |
31 | | - run: | |
32 | | - mkdir _libraries |
33 | | - git clone --depth 1 -b snapshot/nightly https://github.com/Icinga/icinga-php-library.git _libraries/ipl |
34 | | - git clone --depth 1 -b snapshot/nightly https://github.com/Icinga/icinga-php-thirdparty.git _libraries/vendor |
| 28 | + - name: Set up libraries |
| 29 | + run: | |
| 30 | + mkdir _libraries |
| 31 | + git clone --depth 1 -b snapshot/nightly https://github.com/Icinga/icinga-php-library.git _libraries/ipl |
| 32 | + git clone --depth 1 -b snapshot/nightly https://github.com/Icinga/icinga-php-thirdparty.git _libraries/vendor |
35 | 33 |
|
36 | | - - name: PHPUnit |
37 | | - env: |
38 | | - ICINGAWEB_LIBDIR: _libraries |
39 | | - run: phpunit --bootstrap _icingaweb2/test/php/bootstrap.php |
| 34 | + - name: PHPUnit |
| 35 | + env: |
| 36 | + ICINGAWEB_LIBDIR: _libraries |
| 37 | + run: phpunit --bootstrap _icingaweb2/test/php/bootstrap.php |
0 commit comments