-
Notifications
You must be signed in to change notification settings - Fork 67
48 lines (40 loc) · 1.52 KB
/
compatibility-eap.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
name: Compatibility Check EAP
on:
workflow_dispatch:
schedule:
- cron: "0 5 * * *"
jobs:
compatibility-eap:
name: Ensure plugin compatibility against latest EAP
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v1
with:
java-version: 11
- name: Cache Gradle packages
uses: actions/cache@v2
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
restore-keys: ${{ runner.os }}-gradle
- name: Build the plugins
run: ./gradlew buildPlugin
- name: Download latest EAP
run: |
sudo curl -L "https://download.jetbrains.com/product?code=IC&latest&distribution=linux&type=eap" --output latest-eap.tar.gz
mkdir latest-eap && tar -xvf latest-eap.tar.gz -C latest-eap --strip-components 1
ls -al latest-eap
- name: Validate the public plugin against latest EAP
run: ./gradlew :Tabnine:runPluginVerifier -PideVersions="" -PlocalPaths="$(pwd)/latest-eap"
- name: Validate the self-hosted plugin against latest EAP
run: ./gradlew :TabnineSelfHosted:runPluginVerifier -PideVersions="" -PlocalPaths="$(pwd)/latest-eap"
- name: Notify slack fail
if: failure()
env:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_NOTIFICATIONS_BOT_TOKEN }}
uses: voxmedia/github-action-slack-notify-build@v1
with:
channel: tab9-build
status: FAILED
color: danger