focus on fixing macos15-intel #13
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 == 'Windows' | |
| run: brew install xcode | |
| - 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 |