Skip to content

Commit 1a5c16b

Browse files
authored
Switch to Github Actions, closes #112 (#114)
1 parent 0a28688 commit 1a5c16b

File tree

4 files changed

+67
-8
lines changed

4 files changed

+67
-8
lines changed

.github/workflows/main.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Build main
2+
on:
3+
push:
4+
branches:
5+
- 'main'
6+
7+
permissions:
8+
contents: write
9+
10+
jobs:
11+
main:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Set up JDK 11
15+
uses: actions/setup-java@v3
16+
with:
17+
java-version: '11'
18+
distribution: 'temurin'
19+
20+
- name: Checkout Repo
21+
uses: actions/checkout@v3
22+
with:
23+
fetch-depth: 0
24+
25+
- name: Build Project
26+
run: ./gradlew gitVersion check javadoc -P GITHUB_API_TOKEN=${{ secrets.GITHUB_TOKEN }}
27+
28+
- name: Tag Release
29+
run: ./gradlew gitTagRelease -P GITHUB_API_TOKEN=${{ secrets.GITHUB_TOKEN }}
30+
31+
- name: Push Tags
32+
run: git push --tags
33+
34+
- name: Upload Test Results
35+
uses: codecov/codecov-action@v3
36+
with:
37+
fail_ci_if_error: true # optional (default = false)
38+
verbose: true # optional (default = false)

.github/workflows/pr.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Build PR
2+
on:
3+
pull_request:
4+
branches:
5+
- 'main'
6+
jobs:
7+
build:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: Set up JDK 11
11+
uses: actions/setup-java@v3
12+
with:
13+
java-version: '11'
14+
distribution: 'temurin'
15+
16+
- name: Checkout Repo
17+
uses: actions/checkout@v3
18+
with:
19+
fetch-depth: 0
20+
21+
- name: Build Project
22+
run: ./gradlew gitVersion check javadoc -P GITHUB_API_TOKEN=${{ secrets.GITHUB_TOKEN }}
23+
24+
- name: Upload Test Results
25+
uses: codecov/codecov-action@v3
26+
with:
27+
fail_ci_if_error: true # optional (default = false)
28+
verbose: true # optional (default = false)

.travis.yml

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

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
[![Build Status](https://travis-ci.org/dmfs/lib-recur.svg?branch=master)](https://travis-ci.org/dmfs/lib-recur)
1+
[![Build](https://github.com/dmfs/lib-recur/actions/workflows/main.yml/badge.svg?label=main)](https://github.com/dmfs/lib-recur/actions/workflows/main.yml)
22
[![codecov](https://codecov.io/gh/dmfs/lib-recur/branch/master/graph/badge.svg)](https://codecov.io/gh/dmfs/lib-recur)
33

44
# lib-recur

0 commit comments

Comments
 (0)