fix build again (#139) #50
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-24.04 | |
| permissions: | |
| contents: read | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - uses: actions/setup-java@v4 | |
| with: | |
| # should be kept in sync with [https://github.com/runelite/runelite/blob/master/.github/workflows/CI.yml] | |
| java-version: '11' # runelite currently targets JDK v11 | |
| distribution: 'temurin' | |
| - name: Setup Gradle | |
| uses: gradle/actions/setup-gradle@017a9effdb900e5b5b2fddfb590a105619dca3c3 # v4.4.2 | |
| - name: Compile | |
| run: ./gradlew compileJava | |
| - name: Compile Tests | |
| run: ./gradlew compileTestJava | |
| - name: Run Tests | |
| run: ./gradlew test | |
| - name: Run Pre-PluginHub-Checks | |
| run: | | |
| longestLine=$(cat build.gradle | wc -L) | |
| if (( longestLine > 120 )); then | |
| echo "Malformed gradle - longest line: ${longestLine}" | |
| exit 1 | |
| fi |