Skip to content

Commit e831ae9

Browse files
author
gdgate
authored
Merge pull request #1040 from helobinvn/github-action
SETI-5977: Migrating from Travis-CI to Github Action Reviewed-by: Binh Pham https://github.com/helobinvn
2 parents d340209 + 71ad14e commit e831ae9

File tree

3 files changed

+42
-16
lines changed

3 files changed

+42
-16
lines changed

.github/workflows/build.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: build
2+
on:
3+
push:
4+
branches:
5+
- master
6+
- /\d\.0\.0-RC/
7+
pull_request:
8+
branches:
9+
- master
10+
- /\d\.0\.0-RC/
11+
jobs:
12+
builds-tests-coverage:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v2
16+
- uses: actions/setup-java@v2
17+
with:
18+
java-version: '11'
19+
distribution: 'adopt'
20+
- uses: actions/cache@v2
21+
with:
22+
path: ~/.m2
23+
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
24+
restore-keys: ${{ runner.os }}-m2
25+
- name: Set branch name and PR number
26+
id: refs
27+
env:
28+
BRANCH_NAME_OR_REF: ${{ github.head_ref || github.ref }}
29+
run: |
30+
echo "::set-output name=branch_name::${BRANCH_NAME_OR_REF#refs/heads/}"
31+
echo "::set-output name=pr_number::$(jq --raw-output .pull_request.number "$GITHUB_EVENT_PATH")"
32+
- name: Run build steps and check coverage
33+
env:
34+
CI_NAME: Github
35+
CI_BUILD_NUMBER: ${{ github.run_id }}
36+
CI_BUILD_URL: https://github.com/${{ github.repository }}/commit/${{ github.event.after }}/checks
37+
CI_BRANCH: ${{ steps.refs.outputs.branch_name }}
38+
CI_PULL_REQUEST: ${{ steps.refs.outputs.pr_number }}
39+
run: |
40+
mvn verify javadoc:javadoc coveralls:report -Pcoverage -DrepoToken=${{ secrets.COVERALLS_REPO_TOKEN }} -B -V

.travis.yml

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

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
# GoodData Java SDK
2-
[![Build Status](https://travis-ci.org/gooddata/gooddata-java.png?branch=master)](https://travis-ci.org/gooddata/gooddata-java)
2+
[![Build Status](https://github.com/gooddata/gooddata-java/actions/workflows/build.yml/badge.svg?branch=master)](https://github.com/gooddata/gooddata-java/actions/workflows/build.yml)
33
[![Javadocs](http://javadoc.io/badge/com.gooddata/gooddata-java.svg)](http://javadoc.io/doc/com.gooddata/gooddata-java)
44
[![Javadocs Model](https://javadoc.io/badge2/com.gooddata/gooddata-java-model/javadoc--model.svg)](https://javadoc.io/doc/com.gooddata/gooddata-java-model)
55
[![Maven Central](https://maven-badges.herokuapp.com/maven-central/com.gooddata/gooddata-java/badge.svg)](https://maven-badges.herokuapp.com/maven-central/com.gooddata/gooddata-java)
66
[![Release](https://img.shields.io/github/release/gooddata/gooddata-java.svg)](https://github.com/gooddata/gooddata-java/releases)
77
[![Stability: Active](https://masterminds.github.io/stability/active.svg)](https://masterminds.github.io/stability/active.html)
88
[![License](https://img.shields.io/badge/license-BSD-blue.svg)](LICENSE.txt)
9+
[![Coverage Status](https://coveralls.io/repos/github/gooddata/gooddata-java/badge.svg?branch=master)](https://coveralls.io/github/gooddata/gooddata-java?branch=master)
910

1011
The *GoodData Java SDK* encapsulates the REST API of the **GoodData Platform**.
1112
The first version was implemented during the [All Data Hackathon](http://hackathon.gooddata.com) April 10 - 11 2014.

0 commit comments

Comments
 (0)