name: "Quality Check" on: - pull_request jobs: test: name: "Tests" runs-on: "ubuntu-latest" container: image: "cimg/openjdk:21.0.2-node" steps: - name: "Checkout" uses: actions/checkout@v3 - uses: actions/cache@v4 with: path: | ~/.gradle/caches ~/.gradle/wrapper key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }} restore-keys: | ${{ runner.os }}-gradle- - name: "Prepare Gradle" run: gradle clean - name: "Check" run: gradle test - name: "Stop Gradle" run: gradle --stop checkstyle: name: "Checkstyle Main" runs-on: "ubuntu-latest" container: image: "cimg/openjdk:21.0.2-node" steps: - name: "Checkout" uses: actions/checkout@v3 - uses: actions/cache@v4 with: path: | ~/.gradle/caches ~/.gradle/wrapper key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }} restore-keys: | ${{ runner.os }}-gradle- - name: "Prepare Gradle" run: gradle clean - name: "Check" run: gradle checkstyleMain --scan - name: "Stop Gradle" run: gradle --stop