diff --git a/.github/workflows/ci_cd.yml b/.github/workflows/ci_cd.yml index d85da3410b..bdc55a505a 100644 --- a/.github/workflows/ci_cd.yml +++ b/.github/workflows/ci_cd.yml @@ -264,7 +264,7 @@ jobs: - name: Check UI dependencies if: steps.ui-files-changed.outputs.any_modified == 'true' && steps.is_core_repo.outputs.value == 'true' - run: npx knip@5.88.0 -c ui/knip.jsonc + run: yarn knip - name: Check deployment build.gradle id: check_deployment_gradle @@ -466,16 +466,21 @@ jobs: - name: Define backend test command id: test-backend-command if: ${{ steps.skip-backend-tests.outputs.value != 'true' }} - run: echo "value=./gradlew test -x npmTest" >> $GITHUB_OUTPUT + run: | + if [ "${{ steps.is_core_repo.outputs.value }}" = "true" ]; then + echo "value=./gradlew testBackend" >> $GITHUB_OUTPUT + else + echo "value=./gradlew test -x npmTest" >> $GITHUB_OUTPUT + fi - name: Define UI component test command id: test-ui-components-command if: ${{ steps.skip-ui-component-tests.outputs.value != 'true' }} - run: echo "value=./gradlew -p ui/component npmTest" >> $GITHUB_OUTPUT + run: echo "value=./gradlew testUiComponent" >> $GITHUB_OUTPUT - name: Define UI app test command id: test-ui-apps-command - run: echo "value=./gradlew -p ui/app npmTest" >> $GITHUB_OUTPUT + run: echo "value=./gradlew testUiApp" >> $GITHUB_OUTPUT - name: Define manager docker build command id: manager-docker-command @@ -703,20 +708,7 @@ jobs: - name: Check for outdated translations if: steps.is_core_repo.outputs.value == 'true' - run: | - set -e - - # Run the tests - ./gradlew -p ui/app/shared processTranslations --no-parallel - - out=$(git status --porcelain | grep "ui/app/shared/locales" || true) - if [[ -z "$out" ]]; then - echo "✅ No pipeline changes detected." - else - echo "❌ Pipeline files have changed. Please run './gradlew -p ui/app/shared processTranslations --no-parallel'" - echo "$out" - exit 1 - fi + run: ./gradlew :ui:app:shared:checkTranslations --no-parallel timeout-minutes: 20 - name: Run backend tests diff --git a/.github/workflows/ui-app-tests.yml b/.github/workflows/ui-app-tests.yml index 78d3cca029..dfbf96b01d 100644 --- a/.github/workflows/ui-app-tests.yml +++ b/.github/workflows/ui-app-tests.yml @@ -50,7 +50,7 @@ jobs: docker compose -f profile/dev-testing.yml up -d --no-build # Run the tests - ./gradlew -p ui/app npmTest -Pargs="--shard=${{ matrix.shardIndex }}/${{ matrix.shardCount }}" + ./gradlew testUiApp -Pargs="--shard=${{ matrix.shardIndex }}/${{ matrix.shardCount }}" - name: Archive UI app test results if: always() uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2 diff --git a/.github/workflows/ui-check-outdated-translations.yml b/.github/workflows/ui-check-outdated-translations.yml index 9c87cf8ca2..03195e0ef0 100644 --- a/.github/workflows/ui-check-outdated-translations.yml +++ b/.github/workflows/ui-check-outdated-translations.yml @@ -22,18 +22,4 @@ jobs: cache: "gradle" - name: Check for outdated translations timeout-minutes: 20 - run: | - # Check Outdated Translations - ./gradlew -p ui/app/shared processTranslations --no-parallel - - out=$(git status --porcelain | grep "ui/app/shared/locales" || true) - if [[ -z "$out" ]]; then - echo "✅ No pipeline changes detected." - else - echo "❌ Pipeline files have changed. Please run: - \`\`\`sh - ./gradlew -p ui/app/shared processTranslations --no-parallel - \`\`\` - $out" >> $GITHUB_STEP_SUMMARY - exit 1 - fi + run: ./gradlew :ui:app:shared:checkTranslations --no-parallel diff --git a/.github/workflows/ui-component-tests.yml b/.github/workflows/ui-component-tests.yml index e759dd544a..1c9a863b00 100644 --- a/.github/workflows/ui-component-tests.yml +++ b/.github/workflows/ui-component-tests.yml @@ -40,7 +40,7 @@ jobs: run: find . -name "*.tsbuildinfo" -exec touch {} + - name: Run UI component tests timeout-minutes: 20 - run: ./gradlew -p ui/component npmTest + run: ./gradlew testUiComponent - name: Archive UI component test results if: always() uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2 diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml index 2922c4ade0..c589e5bc2d 100644 --- a/.github/workflows/unit-tests.yml +++ b/.github/workflows/unit-tests.yml @@ -30,7 +30,7 @@ jobs: timeout-minutes: 20 run: | if [ "${{ steps.is_core_repo.outputs.value }}" = "true" ]; then - ./gradlew test -x :test:test -x npmTest unitTestReport + ./gradlew testBackendUnit unitTestReport else ./gradlew test -x :test:test fi diff --git a/AGENTS.md b/AGENTS.md index d2fe54b17f..9e79c442d8 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -8,7 +8,15 @@ When naming scripts, use \_\