diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 00000000..722029c9 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,36 @@ +name: CI + +on: + pull_request: + branches: + - master + workflow_dispatch: + +jobs: + build: + name: Build and Test + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + os: [ubuntu-latest, macos-latest, windows-latest] + java-version: [17, 21] + + steps: + - name: Setup Maven and Java + uses: s4u/setup-maven-action@2f53a7669c7543a045d0bb6c92436df0c5a726f8 #v1.14.0 + with: + java-distribution: "temurin" + java-version: ${{ matrix.java-version }} + - name: Build (P2) + run: mvn clean verify -Pp2 -B -Dcheckstyle.skip -DskipTests + shell: bash + - name: Build & Test (M2) + run: mvn clean verify -Pm2 -B -Dcheckstyle.skip + shell: bash + - name: Test Summary + uses: test-summary/action@31493c76ec9e7aa675f1585d3ed6f1da69269a86 # v2.4 + with: + paths: "tests/**/surefire-reports/*.xml" + if: always() + diff --git a/tests/org.eclipse.glsp.server.test/src/org/eclipse/glsp/server/features/sourcemodelwatcher/FileWatcherTest.java b/tests/org.eclipse.glsp.server.test/src/org/eclipse/glsp/server/features/sourcemodelwatcher/FileWatcherTest.java index 38a57159..c55b5361 100644 --- a/tests/org.eclipse.glsp.server.test/src/org/eclipse/glsp/server/features/sourcemodelwatcher/FileWatcherTest.java +++ b/tests/org.eclipse.glsp.server.test/src/org/eclipse/glsp/server/features/sourcemodelwatcher/FileWatcherTest.java @@ -46,7 +46,10 @@ import org.junit.jupiter.api.AfterEach; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; +import org.junit.jupiter.api.condition.DisabledOnOs; +import org.junit.jupiter.api.condition.OS; +@DisabledOnOs(OS.MAC) class FileWatcherTest { private static final String DIR = "fileWatcherTests";