chore(deps): bump org.junit.platform:junit-platform-launcher #69
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: Build | ||
| on: | ||
| push: | ||
| branches: [ main, initial-setup ] | ||
| pull_request: | ||
| branches: [ main ] | ||
| jobs: | ||
| build: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v7 | ||
| - name: Set up JDK 21 | ||
| uses: actions/setup-java@v5 | ||
| with: | ||
| java-version: '21' | ||
| distribution: 'temurin' | ||
| cache: 'gradle' | ||
| - name: Setup Gradle | ||
| uses: gradle/actions/setup-gradle@v6 | ||
| - name: Build with Gradle | ||
| run: gradle build --no-configuration-cache | ||
| - name: Upload build artifact | ||
| uses: actions/upload-artifact@v7 | ||
| with: | ||
| name: LazyDialect-plugin | ||
| path: build/libs/LazyDialect-*.jar | ||
| - name: VirusTotal Scan | ||
| if: ${{ secrets.VIRUSTOTAL_API_KEY != '' }} | ||
| run: | | ||
| curl -s --request POST \ | ||
| --url https://www.virustotal.com/api/v3/files \ | ||
| --header "x-apikey: ${{ secrets.VIRUSTOTAL_API_KEY }}" \ | ||
| --form "file=@$(ls build/libs/LazyDialect-*.jar)" \ | ||
| --output vt_response.json | ||
| echo "VirusTotal scan submitted. Analysis ID: $(jq -r '.data.id' vt_response.json)" | ||
| sleep 15 | ||
| curl -s --request GET \ | ||
| --url "https://www.virustotal.com/api/v3/analyses/$(jq -r '.data.id' vt_response.json)" \ | ||
| --header "x-apikey: ${{ secrets.VIRUSTOTAL_API_KEY }}" \ | ||
| | jq '.data.attributes.stats' | ||
| continue-on-error: true | ||