|
56 | 56 | code-style-php: |
57 | 57 | name: Check PHP code style |
58 | 58 | runs-on: ubuntu-latest |
59 | | - permissions: |
60 | | - contents: read |
61 | | - pull-requests: write |
62 | | - container: joomlaprojects/docker-images:php8.4 |
63 | | - needs: [composer] |
| 59 | + strategy: |
| 60 | + matrix: |
| 61 | + command: ['php-cs-fixer fix -vvv --dry-run --diff', 'phpcs --extensions=php -p --standard=ruleset.xml .'] |
64 | 62 | steps: |
65 | 63 | - uses: actions/checkout@v4 |
66 | 64 | - uses: actions/cache/restore@v4 |
|
72 | 70 | PHP_CS_FIXER_IGNORE_ENV: true |
73 | 71 | run: | |
74 | 72 | git config --global --add safe.directory $GITHUB_WORKSPACE |
75 | | - ./libraries/vendor/bin/php-cs-fixer fix --show-progress=dots |
76 | | - ./libraries/vendor/bin/phpcbf --extensions=php -p --standard=ruleset.xml . |
| 73 | + ./libraries/vendor/bin/${{ matrix.command }} |
77 | 74 | - uses: parkerbxyz/suggest-changes@v2 |
78 | 75 | env: |
79 | 76 | ACTIONS_STEP_DEBUG: true |
|
85 | 82 | runs-on: ubuntu-latest |
86 | 83 | container: joomlaprojects/docker-images:php8.4 |
87 | 84 | needs: [composer, npm] |
| 85 | + strategy: |
| 86 | + matrix: |
| 87 | + check: ['lint:js', 'lint:testjs', 'lint:css'] |
88 | 88 | steps: |
89 | 89 | - uses: actions/setup-node@v4 |
90 | 90 | with: |
|
96 | 96 | node_modules |
97 | 97 | media |
98 | 98 | key: ${{ runner.os }}-node-${{ hashFiles('package-lock.json', 'build/media_source/**', 'administrator/components/com_media/resources/**') }} |
99 | | - - name: Check JS code style |
100 | | - run: | |
101 | | - npm run lint:js |
102 | | - npm run lint:testjs |
103 | | - - name: Check CSS code style |
104 | | - run: npm run lint:css |
| 99 | + - name: Check code style |
| 100 | + run: npm run ${{ matrix.check }} |
105 | 101 |
|
106 | 102 | phpstan: |
107 | 103 | name: Run PHPstan |
@@ -212,6 +208,7 @@ jobs: |
212 | 208 | needs: [tests-system-prepare] |
213 | 209 | strategy: |
214 | 210 | matrix: |
| 211 | + browser: ['chrome', 'edge'] |
215 | 212 | config: |
216 | 213 | - php_version: '8.4' |
217 | 214 | test_group: cmysqlmax |
@@ -250,7 +247,7 @@ jobs: |
250 | 247 | /github/home/.cache/Cypress |
251 | 248 | key: ${{ runner.os }}-cypress-${{ hashFiles('package-lock.json') }} |
252 | 249 | - name: Run System tests |
253 | | - run: bash tests/System/entrypoint.sh "$(pwd)" ${{ matrix.config.test_group }} ${{ matrix.config.db_engine }} ${{ matrix.config.db_host }} chrome |
| 250 | + run: bash tests/System/entrypoint.sh "$(pwd)" ${{ matrix.config.test_group }} ${{ matrix.config.db_engine }} ${{ matrix.config.db_host }} ${{ matrix.browser }} |
254 | 251 | - name: Archive test results results |
255 | 252 | uses: actions/upload-artifact@v4 |
256 | 253 | if: always() |
|
0 commit comments