aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.github/test-scala-presence.toml2
-rw-r--r--.github/workflow/gradle.yml34
2 files changed, 36 insertions, 0 deletions
diff --git a/.github/test-scala-presence.toml b/.github/test-scala-presence.toml
new file mode 100644
index 0000000000..ae0e9acd49
--- /dev/null
+++ b/.github/test-scala-presence.toml
@@ -0,0 +1,2 @@
+[exclude]
+"src/main/java/**/*.java" = "import scala." \ No newline at end of file
diff --git a/.github/workflow/gradle.yml b/.github/workflow/gradle.yml
new file mode 100644
index 0000000000..bffb3d2b1b
--- /dev/null
+++ b/.github/workflow/gradle.yml
@@ -0,0 +1,34 @@
+name: Build Project
+
+on:
+ push:
+ branches: [ experimental ]
+ pull_request:
+ branches: [ experimental ]
+
+jobs:
+ build:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v2
+ - name: Set up JDK 11
+ uses: actions/setup-java@v2
+ with:
+ java-version: '11'
+ distribution: 'adopt'
+ cache: gradle
+ - name: Grant execute permission for gradlew
+ run: chmod +x gradlew
+ - name: Setup the workspace
+ run: ./gradlew setupCIWorkspace
+ - name: Build with Gradle
+ run: ./gradlew build
+
+ test-scala-presence:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v2
+ - name: Check
+ uses: mattsb42-meta/not-grep@1.0.0
+ with:
+ config-file: ./.github/test-scala-presence.toml \ No newline at end of file