This repository was archived by the owner on Aug 1, 2025. It is now read-only.
remove dotcom related code from sync.ts, autoedit-onboarding.ts and create-autoedits-provider.ts, StatusBar.ts #6295
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Build, test and verify | |
| on: | |
| pull_request: | |
| push: | |
| branches: | |
| - main | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| test: | |
| name: JetBrains tests | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Fetch Sources | |
| uses: actions/checkout@v4 | |
| - name: Run pre-build checks | |
| shell: bash | |
| run: "${{ github.workspace }}/jetbrains/scripts/run-pre-build-checks" | |
| - uses: pnpm/action-setup@fe02b34f77f8bc703788d5817da081398fad5dd2 # SECURITY: pin third-party action hashes | |
| - run: echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT | |
| shell: bash | |
| id: pnpm-cache | |
| - name: Cache pnpm store | |
| uses: actions/cache@v4 | |
| with: | |
| path: ${{ steps.pnpm-cache.outputs.STORE_PATH }} | |
| key: ${{ runner.os }}-${{ matrix.node }}-pnpm-store- | |
| restore-keys: ${{ runner.os }}-${{ matrix.node }}-pnpm-store-k | |
| - name: Cache gradle and sourcegraph stores | |
| uses: actions/cache@v4 | |
| with: | |
| path: | | |
| ~/.gradle/caches | |
| ~/.gradle/wrapper | |
| ~/.sourcegraph/caches | |
| key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties', 'gradle.properties') }} | |
| restore-keys: | | |
| ${{ runner.os }}-gradle- | |
| - name: Gradle Wrapper Validation | |
| uses: gradle/actions/wrapper-validation@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| - name: Setup Java | |
| uses: actions/setup-java@v4 | |
| with: | |
| distribution: zulu | |
| java-version: 17 | |
| cache: gradle | |
| # Skip Code Search build in CI because it's slow, and we don't use it anyway for testing purposes. | |
| - run: echo "SKIP_CODE_SEARCH_BUILD=true" >> $GITHUB_ENV | |
| - name: Verify the build (runs static code analysis and tests) | |
| run: | | |
| pushd jetbrains | |
| ./gradlew spotlessCheck | |
| ./gradlew check | |
| popd > /dev/null | |
| - name: Upload the test report | |
| if: always() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: test-report | |
| path: jetbrains/build/reports/tests/ | |
| compression-level: 9 | |
| - name: Build the plugin | |
| run: | | |
| pushd jetbrains | |
| ./gradlew buildPlugin | |
| ./gradlew --stop | |
| popd > /dev/null | |
| - name: Upload the plugin package | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: plugin | |
| path: "./jetbrains/build/distributions/Sourcegraph-*.zip" | |
| compression-level: 0 | |
| retention-days: 7 | |
| plugin-verifier: | |
| name: IntelliJ Plugin Verifier | |
| runs-on: ubuntu-latest | |
| needs: | |
| - test | |
| steps: | |
| - uses: actions/download-artifact@v4 | |
| with: | |
| name: plugin | |
| - name: Verify Plugin on IntelliJ Platforms | |
| id: verify | |
| uses: ChrisCarini/[email protected] | |
| with: | |
| plugin-location: "*.zip" | |
| # TODO (pkukielka): Upper range should be bumped to 251.14649.49-EAP-SNAPSHOT | |
| # as soon as problem with Git4Idea dependencies will get resolved | |
| ide-versions: | | |
| ideaIC:2023.2 | |
| ideaIC:2024.2.4 | |
| failure-levels: | | |
| INVALID_PLUGIN | |
| MISSING_DEPENDENCIES | |
| NON_EXTENDABLE_API_USAGES | |
| OVERRIDE_ONLY_API_USAGES | |
| PLUGIN_STRUCTURE_WARNINGS | |
| - name: Upload the verification reports | |
| if: always() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: plugin-verifier-reports | |
| path: "verification-*" | |
| compression-level: 9 |