refactor: spin up a separate Node process for each preview server #1151
Workflow file for this run
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
name: Test IntelliJ plugin | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- "integrations/intellij/**" | |
- ".github/workflows/test-intellij.yaml" | |
pull_request: | |
branches: | |
- "*" | |
paths: | |
- "integrations/intellij/**" | |
- ".github/workflows/test-intellij.yaml" | |
jobs: | |
intellij-tests: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
node-version: [18.x] | |
os: [ubuntu-latest] | |
steps: | |
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- uses: actions/setup-java@v3 | |
with: | |
distribution: "temurin" | |
java-version: "11" | |
- name: Cache pnpm modules | |
uses: actions/cache@v3 | |
with: | |
path: ~/.pnpm-store | |
key: ${{ runner.os }}-exclude-test-apps-${{ hashFiles('pnpm-lock.yaml') }} | |
restore-keys: | | |
${{ runner.os }}-exclude-test-apps- | |
- uses: pnpm/[email protected] | |
with: | |
run_install: | | |
- args: [--filter=\!./framework-plugins/\*/tests/apps/\*] | |
- run: pnpm turbo run build --scope=@previewjs/intellij-daemon --include-dependencies | |
- run: cd integrations/intellij && ./gradlew ktlintCheck | |
- run: cd integrations/intellij && ./gradlew runPluginVerifier | |
- run: cd integrations/intellij && ./gradlew buildPlugin |