Metadata rework p2: metadata now lives with the objects they represent! #2289
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: Build | |
| on: [push, pull_request] | |
| jobs: | |
| build: | |
| strategy: | |
| matrix: | |
| java: [17, 21] | |
| runs-on: ubuntu-24.04 | |
| container: | |
| image: eclipse-temurin:${{ matrix.java }} | |
| options: --user root | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: gradle/actions/setup-gradle@v4 | |
| with: | |
| cache-read-only: ${{ github.repository_owner != 'Vineflower' || !(contains(github.ref_name, 'develop') || contains(github.ref_name, 'master')) }} | |
| - name: Build with Gradle | |
| run: | | |
| ./gradlew build --stacktrace | |
| - name: Archive test results | |
| if: "${{ always() }}" | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: "test-results-java${{ matrix.java }}" | |
| path: | | |
| build/reports/ | |
| plugins/*/build/reports/ | |
| build/test-results/**/*.xml | |
| publish-test-results: | |
| runs-on: ubuntu-24.04 | |
| needs: [build] | |
| permissions: | |
| issues: write | |
| pull-requests: write | |
| checks: write | |
| if: success() || failure() | |
| steps: | |
| - name: Download Artifacts | |
| uses: actions/download-artifact@v4 | |
| with: | |
| path: artifacts | |
| - name: Publish Test Results | |
| uses: EnricoMi/publish-unit-test-result-action@v2 | |
| with: | |
| check_name: Test Results | |
| files: artifacts/*/build/test-results/**/*.xml |