Add CI pipeline (#7)
diff --git a/.github/workflows/compatibility.yml b/.github/workflows/compatibility.yml
new file mode 100644
index 0000000..710607e
--- /dev/null
+++ b/.github/workflows/compatibility.yml
@@ -0,0 +1,66 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+name: IntelliJ Platform Plugin Compatibility
+
+on:
+ push:
+ branches: [ master ]
+ pull_request:
+ branches: [ master ]
+
+jobs:
+ compatibility:
+ name: Ensure plugin compatibility against 2018.1 ~ 2020.3 for IDEA Community, IDEA Ultimate
+ runs-on: ubuntu-latest
+ steps:
+ - name: Check out repository
+ uses: actions/checkout@v1
+
+ - name: Setup Java 11
+ uses: actions/setup-java@v1
+ with:
+ java-version: 11
+
+ - name: Build the plugin using Gradle
+ run: ./gradlew buildPlugin
+
+ - name: Verify Plugin on IntelliJ Platforms
+ id: verify
+ uses: ChrisCarini/intellij-platform-plugin-verifier-action@latest
+ with:
+ ide-versions: |
+ ideaIC:2018.1
+ ideaIC:2018.2
+ ideaIC:2018.3.6
+ ideaIC:2019.1.4
+ ideaIC:2019.3
+ ideaIC:2020.1
+ ideaIC:2020.2
+ ideaIC:2020.3
+ ideaIU:2018.1
+ ideaIU:2018.2
+ ideaIU:2018.3.6
+ ideaIU:2019.1.4
+ ideaIU:2019.3
+ ideaIU:2020.1
+ ideaIU:2020.2
+ ideaIU:2020.3
+ - name: Get log file path and print contents
+ run: |
+ echo "The verifier log file [${{steps.verify.outputs.verification-output-log-filename}}] contents : " ;
+ cat ${{steps.verify.outputs.verification-output-log-filename}}
diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml
new file mode 100644
index 0000000..cee8c15
--- /dev/null
+++ b/.github/workflows/gradle.yml
@@ -0,0 +1,40 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+name: Java CI with Gradle
+
+on:
+ push:
+ branches: [ master ]
+ pull_request:
+ branches: [ master ]
+
+jobs:
+ build:
+
+ runs-on: ubuntu-latest
+
+ steps:
+ - uses: actions/checkout@v2
+ - name: Set up JDK 11
+ uses: actions/setup-java@v1
+ with:
+ java-version: 11
+ - name: Grant execute permission for gradlew
+ run: chmod +x gradlew
+ - name: Build with Gradle
+ run: ./gradlew build