Skip to content

Commit 2efe12c

Browse files
committed
Revisit QA pipelines
1 parent a70a7cb commit 2efe12c

1 file changed

Lines changed: 16 additions & 2 deletions

File tree

.github/workflows/codeql.yml

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,15 @@ on:
55
branches: ["master"]
66
pull_request:
77
branches: ["master"]
8+
schedule:
9+
- cron: '0 0 * * 0'
810

911
jobs:
1012
php-lint:
1113
runs-on: ubuntu-latest
1214

1315
strategy:
16+
fail-fast: false
1417
matrix:
1518
php-version: ['8.2', '8.3', '8.4']
1619

@@ -34,9 +37,20 @@ jobs:
3437
run: composer install --no-interaction --prefer-dist
3538

3639
- name: Run PHPCS
40+
continue-on-error: true
3741
working-directory: pluginpass-pro-plugintheme-licensing
38-
run: vendor/bin/phpcs --standard=WordPress --extensions=php inc/
42+
run: vendor/bin/phpcs --standard=WordPress --extensions=php --report=full --report-file=./phpcs-report.txt inc/
3943

4044
- name: Run PHPStan
45+
continue-on-error: true
4146
working-directory: pluginpass-pro-plugintheme-licensing
42-
run: vendor/bin/phpstan analyse inc --memory-limit=1G
47+
run: vendor/bin/phpstan analyse --error-format=raw --no-progress inc --memory-limit=1G > ./phpstan-report.txt || true
48+
49+
- name: Upload analysis reports
50+
if: always()
51+
uses: actions/upload-artifact@v4
52+
with:
53+
name: analysis-reports-${{ matrix.php-version }}
54+
path: |
55+
pluginpass-pro-plugintheme-licensing/phpcs-report.txt
56+
pluginpass-pro-plugintheme-licensing/phpstan-report.txt

0 commit comments

Comments
 (0)