This repository has been archived by the owner on Jul 23, 2024. It is now read-only.
Update all dependencies #234
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: pull_request | |
env: | |
JAVA_OPTS: -Xms1g -Xmx3g | |
GRADLE_OPTS: "-Dorg.gradle.daemon=false -Dorg.gradle.configureondemand=true -Dorg.gradle.jvmargs=-Xmx3g -XX:MaxPermSize=2048m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8" | |
jobs: | |
build: | |
env: | |
JAVA_OPTS: -Xms512m -Xmx1024m | |
runs-on: ubuntu-latest | |
timeout-minutes: 20 | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Restore Gradle cache | |
id: cache | |
uses: actions/cache@v2.1.8 | |
with: | |
path: | | |
~/.gradle/caches | |
~/.gradle/wrapper | |
key: misc-step-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }} | |
restore-keys: | | |
build-gradle- | |
- name: Build project | |
run: ./gradlew build check | |
- name: Upload reports | |
uses: actions/upload-artifact@v3.1.3 | |
with: | |
name: 'reports' | |
path: '**/build/reports/**' | |
- name: Upload Code Scanning code analysis report | |
if: always() | |
uses: github/codeql-action/upload-sarif@v1 | |
with: | |
sarif_file: 'build/reports/detekt/main.sarif' | |
- name: Stop Gradle daemons | |
run: ./gradlew --stop | |
update_api: | |
runs-on: ubuntu-latest | |
timeout-minutes: 20 | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Build | |
uses: gradle/gradle-build-action@v2.12.0 | |
with: | |
arguments: apiDump | |
- name: Stop Gradle daemons | |
run: ./gradlew --stop | |
- name: "Commit new API files" | |
uses: stefanzweifel/git-auto-commit-action@v4.16.0 | |
with: | |
commit_message: Update API files | |
file_pattern: /**/api/*.api |