Skip to content

Purging Staff Spec at Yama #40

Purging Staff Spec at Yama

Purging Staff Spec at Yama #40

Workflow file for this run

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: Lint & Formatting
run: ./gradlew checkstyleMain checkstyleTest
- 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