feat: add CI step that only compiles the SDK, examples, and tests
@@ -9,6 +9,36 @@ on:
- main
jobs:
+ compile:
+ runs-on: ubuntu-latest
+
+ steps:
+ - uses: actions/checkout@v2
+ with:
+ fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
+ - name: Set up JDK 14
+ uses: actions/setup-java@v2
+ with:
+ java-version: '14'
+ distribution: 'adopt'
+ - name: Cache Gradle packages
+ uses: actions/cache@v2
+ with:
+ path: |
+ ~/.gradle/caches
+ ~/.gradle/wrapper
+ key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
+ restore-keys: |
+ ${{ runner.os }}-gradle-
+ - name: Compile SDK
+ run: ./gradlew compileJava
+ - name: Compile Tests
+ run: ./gradlew compileTestJava
+ - name: Compile Integration Tests
+ run: ./gradlew compileIntegrationTestJava
+ - name: Compile Examples
+ run: ./gradlew :examples:compileJava
+
build:
runs-on: ubuntu-latest
