[Wurst-Bot] Update to 1.20.5 #82
This file contains 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: Java CI with Gradle | |
on: | |
push: | |
paths: | |
- '**.java' | |
- 'gradle**' | |
- 'build.gradle' | |
pull_request: | |
paths: | |
- '**.java' | |
- 'gradle**' | |
- 'build.gradle' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Validate Gradle wrapper | |
uses: gradle/wrapper-validation-action@v2 | |
- name: Set up Java 21 | |
uses: actions/setup-java@v4 | |
with: | |
java-version: '21' | |
distribution: 'microsoft' | |
- name: Grant execute permission for gradlew | |
run: chmod +x gradlew | |
- name: Setup Gradle | |
uses: gradle/gradle-build-action@v3 | |
- name: Check code style with Spotless | |
id: spotless_check | |
run: ./gradlew spotlessCheck | |
- name: Execute Gradle build | |
run: ./gradlew build | |
- name: VirusTotal scan | |
if: ${{ github.event_name == 'push' }} | |
uses: crazy-max/ghaction-virustotal@v4 | |
with: | |
vt_api_key: ${{ secrets.VIRUSTOTAL_API_KEY }} | |
files: | | |
./build/libs/*.jar | |
continue-on-error: true |