Remove unnecessary array wrapping to .addAll (#64) #179
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: CI | |
| on: [ push, pull_request ] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up JDK 17 | |
| uses: actions/setup-java@v4 | |
| with: | |
| java-version: 17 # Use Java 17 here because the Loom test env needs it | |
| distribution: temurin | |
| - name: Cache Gradle files | |
| uses: actions/cache@v4 | |
| if: ${{ !env.ACT }} | |
| with: | |
| path: | | |
| ~/.gradle/caches | |
| ~/.gradle/wrapper | |
| build/loom-cache | |
| .gradle/loom-cache | |
| key: ${{ runner.os }}-gradle-${{ hashFiles('*/build.gradle', '*/settings.gradle', '*gradle.*') }} | |
| restore-keys: ${{ runner.os }}-gradle- | |
| - name: Build with Gradle | |
| run: ./gradlew build publishToMavenLocal | |
| - name: Upload artifacts | |
| uses: actions/upload-artifact@v4 | |
| if: ${{ !env.ACT }} | |
| with: | |
| name: Artifacts | |
| path: build/libs | |
| - name: Test with Gradle | |
| run: | | |
| ./gradlew -p fg modrinth | |
| ./gradlew -p loom modrinth | |
| if: ${{ !contains(github.event.head_commit.message, 'skip test') }} | |
| env: | |
| MODRINTH_TOKEN: dummy_token_for_CI |