Skip to content

Commit aa81d79

Browse files
authored
Merge pull request #1669 from Haehnchen/Haehnchen-patch-2
gradle to github actions migration
2 parents 5bd7a92 + 1e70353 commit aa81d79

File tree

2 files changed

+60
-0
lines changed

2 files changed

+60
-0
lines changed

.github/workflows/gradle.yml

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
# This workflow will build a Java project with Gradle
2+
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle
3+
4+
name: Java CI with Gradle
5+
6+
on:
7+
push:
8+
branches: [ master ]
9+
pull_request:
10+
branches: [ master ]
11+
12+
jobs:
13+
build:
14+
runs-on: ubuntu-latest
15+
16+
steps:
17+
- uses: actions/checkout@v2
18+
19+
- name: Set up JDK 11
20+
uses: actions/setup-java@v2
21+
with:
22+
java-version: '11'
23+
distribution: 'adopt'
24+
25+
# Cache Gradle dependencies
26+
- name: Setup Gradle Dependencies Cache
27+
uses: actions/cache@v2.1.6
28+
with:
29+
path: ~/.gradle/caches
30+
key: ${{ runner.os }}-gradle-caches-${{ hashFiles('**/*.gradle', '**/*.gradle.kts', 'gradle.properties') }}
31+
32+
# Cache Gradle Wrapper
33+
- name: Setup Gradle Wrapper Cache
34+
uses: actions/cache@v2.1.6
35+
with:
36+
path: ~/.gradle/wrapper
37+
key: ${{ runner.os }}-gradle-wrapper-${{ hashFiles('**/gradle/wrapper/gradle-wrapper.properties') }}
38+
39+
- name: setting env vars
40+
run: echo "Main version ${ORG_GRADLE_PROJECT_ideaVersion}"
41+
env:
42+
ORG_GRADLE_PROJECT_ideaVersion: "IU-2021.1"
43+
ORG_GRADLE_PROJECT_phpPluginVersion: "211.6693.120"
44+
ORG_GRADLE_PROJECT_twigPluginVersion: "211.6693.44"
45+
ORG_GRADLE_PROJECT_toolboxPluginVersion: "0.4.6"
46+
ORG_GRADLE_PROJECT_annotationPluginVersion: "5.3"
47+
ORG_GRADLE_PROJECT_dqlPluginVersion: "211.6693.65"
48+
49+
- name: Grant execute permission for gradlew
50+
run: chmod +x gradlew
51+
52+
- name: Build with Gradle
53+
run: export PHPSTORM_ENV=skip && ./gradlew check verifyPlugin buildPlugin

build.gradle

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,12 +55,19 @@ publishPlugin {
5555

5656
group 'fr.adrienbrault.idea.symfony2plugin'
5757

58+
/*
59+
* What went wrong:
60+
A problem occurred evaluating root project 'idea-php-symfony2-plugin'.
61+
> java.lang.NullPointerException (no error message)
62+
63+
5864
def details = versionDetails()
5965
if (details.isCleanTag) {
6066
version = "${details.lastTag}"
6167
} else {
6268
version = "${details.lastTag}.${details.gitHash}-SNAPSHOT"
6369
}
70+
*/
6471

6572
wrapper {
6673
gradleVersion '5.5.1'

0 commit comments

Comments
 (0)