Update publish.yml #2
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: Test PR | ||
| on: | ||
| workflow_dispatch: | ||
| pull_request: | ||
| jobs: | ||
| GameTest: | ||
| strategy: | ||
| matrix: | ||
| GameTestConfig: [ default, testAE ] | ||
| permissions: | ||
| contents: write | ||
| runs-on: ghcr.io/${{ lower(github.repository) }}:1.20.1-6.0.0-forge | ||
| steps: | ||
| - name: Checkout repository | ||
| uses: actions/checkout@v4 | ||
| - name: Setup JDK 21 | ||
| uses: actions/setup-java@v4 | ||
| with: | ||
| java-version: '21' | ||
| distribution: 'temurin' | ||
| - name: Setup Gradle | ||
| uses: gradle/actions/setup-gradle@v4 | ||
| with: | ||
| gradle-version: '8.11.1' | ||
| - name: Test Server with ${{ matrix.GameTestConfig }} | ||
| run: gradle runGameTestServer -PGameTestConfig=${{ matrix.GameTestConfig }} -Dforge.enabledGameTestNamespaces=smartercontraptionstorage | ||
| - uses: actions/upload-artifact@v4 | ||
| with: | ||
| name: Test Artifact of ${{ matrix.GameTestConfig }} | ||
| include-hidden-files: true | ||
| path: | | ||
| **/logs/ | ||
| **/crash-reports/ | ||
| retention-days: 7 | ||
| if: always() | ||