-
-
Notifications
You must be signed in to change notification settings - Fork 154
79 lines (73 loc) · 2.49 KB
/
test.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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
name: Test
on: pull_request
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref }}
cancel-in-progress: true
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
ideaVersion: [ "2024.2.0.1" ]
steps:
- uses: actions/checkout@v2
- name: Setup JBR 17
uses: gmitch215/setup-java@6d2c5e1f82f180ae79f799f0ed6e3e5efb4e664d
with:
distribution: 'jetbrains'
java-version: 17
cache: 'gradle'
- 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: Set up Elixir
uses: erlef/setup-beam@v1
with:
otp-version: 24.3.4.6
elixir-version: 1.13.4
- name: Export OTP_RELEASE
run: echo "OTP_RELEASE=24.3.4.6" >> $GITHUB_ENV
- name: Export ERLANG_SDK_HOME
run: echo "ERLANG_SDK_HOME=`erl -eval 'io:format("~s", [code:root_dir()]).' -noshell -run init stop`" >> $GITHUB_ENV
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Export ideaVersion to gradle
run: echo "ORG_GRADLE_PROJECT_ideaVersion=${{matrix.ideaVersion}}" >> $GITHUB_ENV
- name: Compile Tests with Gradle
run: ./gradlew --stacktrace compileTestJava
- name: Get Elixir Source
run: ./gradlew --stacktrace getElixir
- name: Release Quoter
run: ./gradlew --stacktrace releaseQuoter
- name: Test with Gradle
run: ./gradlew --stacktrace test
runPluginVerifier:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup JBR 17
uses: gmitch215/setup-java@6d2c5e1f82f180ae79f799f0ed6e3e5efb4e664d
with:
distribution: 'jetbrains'
java-version: 17
cache: 'gradle'
- name: Cache Gradle packages
uses: actions/cache@v2
if: always()
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Run Plugin Verifier
run: ./gradlew --stacktrace verifyPlugin