-
Notifications
You must be signed in to change notification settings - Fork 291
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a CI workflow that builds the JetBrains plugin as an FYI (#5773)
Adds a workflow that builds JetBrains main with a Cody commit, as an FYI. ## Test plan Look at output of the JetBrains FYI job.
- Loading branch information
1 parent
b055686
commit 6ab130f
Showing
1 changed file
with
60 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
name: JetBrains FYI | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
types: [opened, reopened, synchronize, ready_for_review] | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
name: Build JetBrains plugin | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Fetch JetBrains Source | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: sourcegraph/jetbrains | ||
ref: main | ||
- name: Fetch Cody Source | ||
uses: actions/checkout@v4 | ||
with: | ||
path: sourcegraph-cody | ||
- run: yarn global add [email protected] | ||
- 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@v3 | ||
- 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 | ||
- run: echo "SKIP_CODE_SEARCH_BUILD=true" >> $GITHUB_ENV | ||
- name: Build plugin | ||
run: CODY_DIR=$PWD/sourcegraph-cody ./gradlew buildPlugin -PforceAgentBuild=true | ||
- run: ./gradlew --stop |