Skip to content

feat: Add shared JSON theme specifications #59

feat: Add shared JSON theme specifications

feat: Add shared JSON theme specifications #59

name: Multi-Platform CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
test-matrix:
name: Test on ${{ matrix.os }} with Java ${{ matrix.java }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest]
java: ['21', '22', '23-ea']
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install ncurses (Ubuntu)
if: runner.os == 'Linux'
run: sudo apt-get update && sudo apt-get install -y libncurses-dev
- name: Install ncurses (macOS)
if: runner.os == 'macOS'
run: brew install ncurses
- name: Setup JDK ${{ matrix.java }}
uses: actions/setup-java@v5
with:
distribution: 'temurin'
java-version: ${{ matrix.java }}
cache: 'maven'
- name: Run tests
run: mvn clean test
- name: Upload test results
if: always()
uses: actions/upload-artifact@v4
with:
name: test-results-${{ matrix.os }}-java-${{ matrix.java }}
path: target/surefire-reports/