Skip to content

Commit 80927c3

Browse files
committed
Add multi-os workflow
1 parent 55f2a88 commit 80927c3

File tree

2 files changed

+39
-0
lines changed
  • .github/workflows
  • tests/org.eclipse.glsp.server.test/src/org/eclipse/glsp/server/features/sourcemodelwatcher

2 files changed

+39
-0
lines changed

.github/workflows/ci.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: CI
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- master
7+
workflow_dispatch:
8+
9+
jobs:
10+
build:
11+
name: Build and Test
12+
runs-on: ${{ matrix.os }}
13+
strategy:
14+
fail-fast: false
15+
matrix:
16+
os: [ubuntu-latest, macos-latest, windows-latest]
17+
java-version: [17, 21]
18+
19+
steps:
20+
- name: Setup Maven and Java
21+
uses: s4u/setup-maven-action@2f53a7669c7543a045d0bb6c92436df0c5a726f8 #v1.14.0
22+
with:
23+
java-distribution: "temurin"
24+
java-version: ${{ matrix.java-version }}
25+
- name: Build (P2)
26+
run: mvn clean verify -Pp2 -B -Dcheckstyle.skip -DskipTests
27+
shell: bash
28+
- name: Build & Test (M2)
29+
run: mvn clean verify -Pm2 -B -Dcheckstyle.skip
30+
shell: bash
31+
- name: Test Summary
32+
uses: test-summary/action@31493c76ec9e7aa675f1585d3ed6f1da69269a86 # v2.4
33+
with:
34+
paths: "tests/**/surefire-reports/*.xml"
35+
if: always()
36+

tests/org.eclipse.glsp.server.test/src/org/eclipse/glsp/server/features/sourcemodelwatcher/FileWatcherTest.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,10 @@
4646
import org.junit.jupiter.api.AfterEach;
4747
import org.junit.jupiter.api.BeforeEach;
4848
import org.junit.jupiter.api.Test;
49+
import org.junit.jupiter.api.condition.DisabledOnOs;
50+
import org.junit.jupiter.api.condition.OS;
4951

52+
@DisabledOnOs(OS.MAC)
5053
class FileWatcherTest {
5154

5255
private static final String DIR = "fileWatcherTests";

0 commit comments

Comments
 (0)