Qodona #4
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: Build | ||
on: | ||
push: | ||
branches: | ||
- '*' | ||
pull_request: | ||
types: [ opened, synchronize, reopened ] | ||
jobs: | ||
validate-gradle: | ||
name: "Validate Gradle wrapper" | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
- uses: gradle/wrapper-validation-action@v1 | ||
build: | ||
name: Build | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis | ||
- name: Set up JDK 17 | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: 17 | ||
- name: Cache Gradle packages | ||
uses: actions/cache@v1 | ||
with: | ||
path: ~/.gradle/caches | ||
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }} | ||
restore-keys: ${{ runner.os }}-gradle | ||
- name: Build and analyze | ||
run: ./gradlew build --info | ||
continue-on-error: true | ||
- name: 'Qodana Scan' | ||
uses: JetBrains/qodana-action@main | ||
env: | ||
QODANA_TOKEN: ${{ secrets.QODANA_TOKEN | ||
Check failure on line 40 in .github/workflows/build.yml GitHub Actions / BuildInvalid workflow file
|