Fix release name #38
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 and test | |
| permissions: | |
| checks: write | |
| on: | |
| push: | |
| branches: | |
| - "**" | |
| pull_request: | |
| branches: | |
| - "**" | |
| jobs: | |
| build: | |
| name: Build and Test | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout Repository | |
| uses: actions/checkout@v4 | |
| - name: Checkout MCreator repository | |
| uses: actions/checkout@v4 | |
| with: | |
| repository: MCreator/MCreator | |
| ref: 2023.4.52316 | |
| path: mcreator | |
| - name: Set up JDK 17 | |
| uses: actions/setup-java@v4 | |
| with: | |
| java-version: '17.0.16+8' | |
| distribution: 'temurin' | |
| - name: Cache Gradle Packages | |
| uses: actions/cache@v4 | |
| with: | |
| path: | | |
| ~/.gradle/caches | |
| ~/.gradle/wrapper | |
| ~/.mcreator/gradle/caches/ | |
| ~/.mcreator/gradle/wrapper/ | |
| key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }} | |
| restore-keys: | | |
| ${{ runner.os }}-gradle- | |
| - name: Grant execute permission for gradlew | |
| run: chmod +x ./gradlew | |
| - name: Run MCreator Test With Plugin | |
| run: xvfb-run -a ./gradlew test --project-prop mcreator_path=${{ github.workspace }}/mcreator | |
| - name: Test Javadoc Generation | |
| run: ./gradlew javadoc | |
| - name: Publish Test Report | |
| uses: mikepenz/action-junit-report@9379f0ccddcab154835d4e2487555ee79614fe95 | |
| if: always() # always run even if the previous step fails | |
| with: | |
| include_passed: true | |
| detailed_summary: true | |
| report_paths: '**/build/test-results/test/TEST-*.xml' | |
| - name: Prepare Gradle Cache | |
| run: | | |
| rm -f ~/.mcreator/gradle/caches/modules-2/modules-2.lock | |
| rm -fr ~/.mcreator/gradle/caches/*/plugin-resolution/ | |
| rm -f ~/.mcreator/gradle/caches/minecraft/deobfedDeps/providedDummy.jar | |
| rm -f ~/.mcreator/gradle/caches/minecraft/deobfedDeps/compileDummy.jar | |
| rm -f ~/.gradle/caches/modules-2/modules-2.lock | |
| rm -f ~/.gradle/caches/modules-2/gc.properties |