Skip to content

focus on fixing macos15-intel #18

focus on fixing macos15-intel

focus on fixing macos15-intel #18

name: Run EnvironmentTest Cross-Platform
on:
push:
branches:
- createenv
pull_request:
branches:
- main
jobs:
run-specific-test:
name: Test on ${{ matrix.os }} (Java ${{ matrix.java }})
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false # Allows other matrix jobs to complete even if one fails
matrix:
#os: [ubuntu-latest, windows-latest, macos-latest, macos-15-intel]
os: [ macos-15-intel]
java: [21] # Test with different Java LTS versions
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Set up Xcode
if: runner.os == 'macOS'
run: brew install llvm
- name: Set up JDK ${{ matrix.java }}
uses: actions/setup-java@v4
with:
java-version: ${{ matrix.java }}
distribution: 'temurin' # A common, open-source JDK distribution
cache: 'maven' # Caches Maven dependencies for faster builds
- name: Run EnvironmentTest
run: mvn test -Dtest=EnvironmentTest
- name: Upload Surefire Reports (on failure or success)
uses: actions/upload-artifact@v4
if: always() # Ensure this step runs even if the previous 'mvn test' fails
with:
name: surefire-reports-${{ matrix.os }}-java-${{ matrix.java }}
path: target/surefire-reports/
retention-days: 5 # Keep reports for 5 days