diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c45a314c..4e1e385b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -4,7 +4,11 @@ on: - pull_request jobs: build: - runs-on: ubuntu-20.04 + strategy: + fail-fast: false + matrix: + os: [ubuntu, windows, macos] + runs-on: ${{ matrix.os }}-latest steps: - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 - uses: actions/setup-java@0ab4596768b603586c0de567f2430c30f5b0d2b0 # v3.13.0 @@ -12,8 +16,10 @@ jobs: distribution: temurin java-version: 11 - name: Build + shell: bash run: | - export DISPLAY=:99.0 - Xvfb :99 & - sleep 5 + if [[ "$RUNNER_OS" == "Linux" ]]; then + export DISPLAY=:99.0 + Xvfb $DISPLAY & + fi mvn -V -B -e verify -Pe4.12 -Dtycho.executionEnvironment=JavaSE-11 -DskipUITests=false