Skip to content

Commit 8b090f2

Browse files
authored
Merge pull request #67 from Haehnchen/feature/github-actions
migrate to github action
2 parents 8251b9f + 0ba8d65 commit 8b090f2

File tree

6 files changed

+53
-124
lines changed

6 files changed

+53
-124
lines changed

.github/workflows/gradle.yml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
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+
45+
- name: Grant execute permission for gradlew
46+
run: chmod +x gradlew
47+
48+
- name: Build with Gradle
49+
run: export PHPSTORM_ENV=skip && ./gradlew check verifyPlugin buildPlugin

.travis.yml

Lines changed: 0 additions & 28 deletions
This file was deleted.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# IntelliJ IDEA / PhpStorm PHPUnit Enhancement
22

3-
[![Build Status](https://travis-ci.org/Haehnchen/idea-php-phpunit-plugin.svg?branch=master)](https://travis-ci.org/Haehnchen/idea-php-phpunit-plugin)
3+
[![Build Status](https://github.com/Haehnchen/idea-php-phpunit-plugin/actions/workflows/gradle.yml/badge.svg?branch=master)](https://github.com/Haehnchen/idea-php-phpunit-plugin/actions/workflows/gradle.yml)
44
[![Version](http://phpstorm.espend.de/badge/9674/version)](https://plugins.jetbrains.com/plugin/9674)
55
[![Downloads](http://phpstorm.espend.de/badge/9674/downloads)](https://plugins.jetbrains.com/plugin/9674)
66
[![Downloads last month](http://phpstorm.espend.de/badge/9674/last-month)](https://plugins.jetbrains.com/plugin/9674)

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import org.gradle.api.tasks.testing.logging.TestExceptionFormat
22

33
plugins {
44
id "org.jetbrains.intellij" version "0.4.11"
5-
id 'com.palantir.git-version' version "0.11.0"
5+
id "com.palantir.git-version" version "0.12.3"
66
}
77

88
def htmlFixer = { htmlFile -> file(htmlFile).text.replace('<html>', '').replace('</html>', '') }

gradle.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
ideaVersion = IU-2020.2
2-
phpPluginVersion = 202.6397.115
1+
ideaVersion = IU-2021.1
2+
phpPluginVersion = 211.6693.120

travis.sh

Lines changed: 0 additions & 92 deletions
This file was deleted.

0 commit comments

Comments
 (0)