Add JS test coverage to SonarQube job in CI workflow
- Add Node.js and Bun setup steps to the sonarqube job - Install JS dependencies and run bun test:coverage before SonarQube scan Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -144,9 +144,23 @@ jobs:
|
||||
extensions: intl, pdo_pgsql, zip, gd, redis, imagick
|
||||
coverage: xdebug
|
||||
|
||||
- name: Install dependencies
|
||||
- name: Setup Node.js
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: '22'
|
||||
|
||||
- name: Setup Bun
|
||||
uses: oven-sh/setup-bun@v1
|
||||
|
||||
- name: Install PHP dependencies
|
||||
run: composer install --no-interaction --prefer-dist
|
||||
|
||||
- name: Install JS dependencies
|
||||
run: bun install
|
||||
|
||||
- name: JS tests with coverage
|
||||
run: bun run test:coverage
|
||||
|
||||
- name: Create test database
|
||||
run: php bin/console doctrine:database:create --env=test --if-not-exists
|
||||
|
||||
|
||||
Reference in New Issue
Block a user