diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml new file mode 100644 index 00000000..6a9e831a --- /dev/null +++ b/.github/workflows/ci.yaml @@ -0,0 +1,36 @@ + +name: Continuous Integration Testing +on: + push: + branches: + - main + pull_request: {} +jobs: + microprofile-jdt-ext-verify: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Set up JDK 21 for x64 + uses: actions/setup-java@v4 + with: + java-version: '21' + distribution: 'temurin' + architecture: x64 + cache: maven + - name: Run the Maven verify phase + working-directory: "microprofile.jdt" + run: mvn --batch-mode --update-snapshots verify + microprofile-ls-verify: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Set up JDK 11 for x64 + uses: actions/setup-java@v4 + with: + java-version: '11' + distribution: 'temurin' + architecture: x64 + cache: maven + - name: Run the Maven verify phase + working-directory: "microprofile.ls/org.eclipse.lsp4mp.ls" + run: mvn --batch-mode --update-snapshots verify diff --git a/microprofile.jdt/org.eclipse.lsp4mp.jdt.test/src/main/java/org/eclipse/lsp4mp/jdt/core/BasePropertiesManagerTest.java b/microprofile.jdt/org.eclipse.lsp4mp.jdt.test/src/main/java/org/eclipse/lsp4mp/jdt/core/BasePropertiesManagerTest.java index 798a831c..e596581c 100644 --- a/microprofile.jdt/org.eclipse.lsp4mp.jdt.test/src/main/java/org/eclipse/lsp4mp/jdt/core/BasePropertiesManagerTest.java +++ b/microprofile.jdt/org.eclipse.lsp4mp.jdt.test/src/main/java/org/eclipse/lsp4mp/jdt/core/BasePropertiesManagerTest.java @@ -174,7 +174,10 @@ public static IJavaProject loadMavenProjectFromSubFolder(String mavenProject, St IProgressMonitor monitor = new NullProgressMonitor(); waitForBackgroundJobs(monitor); org.eclipse.jdt.ls.core.internal.JobHelpers.waitUntilIndexesReady(); - + Map extendedClientCapabilities = new HashMap<>(); + extendedClientCapabilities.put("classFileContentsSupport", "true"); + JavaLanguageServerPlugin.getPreferencesManager().updateClientPrefences(new ClientCapabilities(), extendedClientCapabilities); + // Collect Quarkus properties from the "hibernate-orm-resteasy" project. It // should collect Quarkus properties from given JAR: