Skip to content

Commit 74bb3a5

Browse files
committed
build(ci): replace travis with github actions
1 parent d366673 commit 74bb3a5

File tree

4 files changed

+41
-17
lines changed

4 files changed

+41
-17
lines changed

.github/.stale.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Number of days of inactivity before an issue becomes stale
2+
daysUntilStale: 21
3+
# Number of days of inactivity before a stale issue is closed
4+
daysUntilClose: 7
5+
# Issues with these labels will never be considered stale
6+
exemptLabels:
7+
- pinned
8+
- security
9+
# Label to use when marking an issue as stale
10+
staleLabel: stale
11+
# Comment to post when marking an issue as stale. Set to `false` to disable
12+
markComment: >
13+
This issue has been automatically marked as stale because it has not had
14+
recent activity. It will be closed if no further activity occurs. Thank you
15+
for your contributions.
16+
# Comment to post when closing a stale issue. Set to `false` to disable
17+
closeComment: false

.github/workflows/build.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Build
2+
on: [push]
3+
4+
jobs:
5+
build:
6+
7+
runs-on: ubuntu-latest
8+
9+
steps:
10+
- uses: actions/checkout@v1
11+
- uses: actions/setup-java@v1
12+
with:
13+
java-version: 1.8
14+
- name: Build with Gradle
15+
env:
16+
run: |
17+
./gradlew assemble
18+
- name: Test with Gradle
19+
env:
20+
run: |
21+
./gradlew test

.travis.yml

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

build.gradle

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ plugins {
33

44
id "java"
55
id "java-gradle-plugin"
6+
id 'com.adarshr.test-logger' version '2.0.0'
67

78
id "com.gradle.plugin-publish" version "0.10.0"
89
id "maven-publish" // for local testing only
@@ -35,6 +36,7 @@ test {
3536
useJUnitPlatform()
3637
}
3738

39+
import org.gradle.api.tasks.testing.logging.TestLogEvent
3840
gradlePlugin {
3941
plugins {
4042
gitVersioning {
@@ -46,6 +48,7 @@ gradlePlugin {
4648
}
4749
}
4850

51+
4952
pluginBundle {
5053
website = 'https://github.com/qoomon/gradle-git-versioning-plugin'
5154
vcsUrl = 'https://github.com/qoomon/gradle-git-versioning-plugin.git'

0 commit comments

Comments
 (0)