Readded caching

This commit is contained in:
Speiger 2022-04-19 16:33:16 +02:00
parent 5d66f7b453
commit ae5a4ea818
1 changed files with 12 additions and 0 deletions

View File

@ -21,6 +21,18 @@ jobs:
run: chmod +x ./gradlew run: chmod +x ./gradlew
- name: Generate SourceCode with Gradle - name: Generate SourceCode with Gradle
run: ./gradlew generateGithubSource run: ./gradlew generateGithubSource
- name: Cache SonarCloud packages
uses: actions/cache@v1
with:
path: ~/.sonar/cache
key: ${{ runner.os }}-sonar
restore-keys: ${{ runner.os }}-sonar
- 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 - name: Build and analyze
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any