Skip to content

Commit

Permalink
build binaries
Browse files Browse the repository at this point in the history
  • Loading branch information
sestinj committed Jun 15, 2024
1 parent 2918cae commit d4b0a01
Showing 1 changed file with 40 additions and 3 deletions.
43 changes: 40 additions & 3 deletions .github/workflows/jetbrains-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,43 @@ jobs:
./gradlew listProductsReleases # prepare list of IDEs for Plugin Verifier
# Setup Node.js
- name: Use Node.js from .nvmrc
uses: actions/setup-node@v4
with:
node-version-file: ".nvmrc"

# Cache node_modules
- name: Cache core node_modules
uses: actions/cache@v3
with:
path: core/node_modules
key: ${{ runner.os }}-node-${{ hashFiles('core/package-lock.json') }}

- name: Cache binary node_modules
uses: actions/cache@v3
with:
path: binary/node_modules
key: ${{ runner.os }}-node-${{ hashFiles('binary/package-lock.json') }}

# npm install core
- name: Install core node_modules
run: |
cd ../../core
npm ci
# npm install binary
- name: Install core node_modules
run: |
cd ../../binary
npm ci
# Build binaries
- name: Install core node_modules
run: |
cd ../../binary
npm run build
# Build plugin
- name: Build plugin
run: ./gradlew buildPlugin
Expand All @@ -87,7 +124,7 @@ jobs:
id: artifact
shell: bash
run: |
cd ${{ github.workspace }}/build/distributions
cd ${{ github.workspace }}/extensions/intellij/build/distributions
FILENAME=`ls *.zip`
unzip "$FILENAME" -d content
Expand All @@ -98,7 +135,7 @@ jobs:
uses: actions/upload-artifact@v4
with:
name: ${{ steps.artifact.outputs.filename }}
path: ./build/distributions/content/*/*
path: ./extensions/intellij/build/distributions/content/*/*

# Run tests and upload a code coverage report
test:
Expand Down Expand Up @@ -133,7 +170,7 @@ jobs:
uses: actions/upload-artifact@v4
with:
name: tests-result
path: ${{ github.workspace }}/build/reports/tests
path: ${{ github.workspace }}/extensions/intellij/build/reports/tests

# Upload the Kover report to CodeCov
# - name: Upload Code Coverage Report
Expand Down

0 comments on commit d4b0a01

Please sign in to comment.