Skip to content

Commit 427ea46

Browse files
committed
replace travis with github actions, add dependabot config
1 parent ada3625 commit 427ea46

File tree

6 files changed

+52
-28
lines changed

6 files changed

+52
-28
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
* Fix multi-module project release
2+
* Replace travis with github actions
3+
* Add dependabot config
24

35
### 3.0.1 (2021-07-13)
46
* Update ru.vyarus.java-lib 2.2.0 -> 2.2.1 (fix multi-module projects configuration)
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: gradle
4+
directory: "/"
5+
schedule:
6+
interval: daily
7+
time: "23:00"
8+
open-pull-requests-limit: 10
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
pull_request:
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
name: Java ${{ matrix.java }}
11+
strategy:
12+
matrix:
13+
java: [8, 11]
14+
15+
steps:
16+
- uses: actions/checkout@v2
17+
18+
- name: Set up JDK ${{ matrix.java }}
19+
uses: actions/setup-java@v1
20+
with:
21+
java-version: ${{ matrix.java }}
22+
23+
- name: Build
24+
run: |
25+
chmod +x gradlew
26+
./gradlew assemble --no-daemon
27+
28+
- name: Test
29+
env:
30+
GH_ACTIONS: true
31+
run: ./gradlew check --no-daemon
32+
33+
- name: Build coverage report
34+
run: ./gradlew jacocoTestReport --no-daemon
35+
36+
- uses: codecov/codecov-action@v2
37+
with:
38+
files: build/reports/jacoco/test/jacocoTestReport.xml
39+
flags: LINUX
40+
fail_ci_if_error: true

app/templates/project-base/_travis.yml

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

app/templates/project-multi/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# <%= libName %>
22
[![License](https://img.shields.io/badge/license-MIT-blue.svg?style=flat)](http://www.opensource.org/licenses/MIT)
3-
[![Build Status](https://travis-ci.com/<%= githubUser %>/<%= libName %>.svg?branch=master)](https://travis-ci.com/<%= githubUser %>/<%= libName %>)
3+
[![CI](https://github.com/<%= githubUser %>/<%= libName %>/actions/workflows/CI.yml/badge.svg)](https://github.com/<%= githubUser %>/<%= libName %>/actions/workflows/CI.yml)
44
[![Appveyor build status](https://ci.appveyor.com/api/projects/status/github/<%= githubUser %>/<%= libName %>?svg=true)](https://ci.appveyor.com/project/<%= githubUser %>/<%= libName %>)
55
[![codecov](https://codecov.io/gh/<%= githubUser %>/<%= libName %>/branch/master/graph/badge.svg)](https://codecov.io/gh/<%= githubUser %>/<%= libName %>)
66

app/templates/project-single/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# <%= libName %>
22
[![License](https://img.shields.io/badge/license-MIT-blue.svg?style=flat)](http://www.opensource.org/licenses/MIT)
3-
[![Build Status](https://travis-ci.com/<%= githubUser %>/<%= libName %>.svg?branch=master)](https://travis-ci.com/<%= githubUser %>/<%= libName %>)
3+
[![CI](https://github.com/<%= githubUser %>/<%= libName %>/actions/workflows/CI.yml/badge.svg)](https://github.com/<%= githubUser %>/<%= libName %>/actions/workflows/CI.yml)
44
[![Appveyor build status](https://ci.appveyor.com/api/projects/status/github/<%= githubUser %>/<%= libName %>?svg=true)](https://ci.appveyor.com/project/<%= githubUser %>/<%= libName %>)
55
[![codecov](https://codecov.io/gh/<%= githubUser %>/<%= libName %>/branch/master/graph/badge.svg)](https://codecov.io/gh/<%= githubUser %>/<%= libName %>)
66

0 commit comments

Comments
 (0)