From 7f42a8b44fe9a1a731c20f1ce8a79083a80c4f39 Mon Sep 17 00:00:00 2001 From: Rincy Mathew Date: Wed, 3 Feb 2021 13:45:08 -0600 Subject: [PATCH 1/2] WIP- github actions migration --- .github/workflows/build.yml | 31 +++++++++++++++++++++++++++++++ .travis.yml | 10 ---------- 2 files changed, 31 insertions(+), 10 deletions(-) create mode 100644 .github/workflows/build.yml delete mode 100644 .travis.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 00000000..aec57224 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,31 @@ +name: Build + +on: [ push, pull_request, workflow_dispatch ] + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + + - name: "Maven Cache" + uses: actions/cache@v2 + with: + path: ~/.m2/repository + key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} + + - name: "Setup Java" + uses: actions/setup-java@v1 + with: + java-version: 1.8 + + - name: "Maven Tests" + run: mvn clean test cobertura:cobertura jacoco:report coveralls:report -DdryRun=true + + - name: "Coverage Report" + uses: MikeEdgar/github-action@raw_coverage_file + with: + github-token: ${{ secrets.github_token }} + path-to-file: 'target/coveralls.json' + coverage-format: raw \ No newline at end of file diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 157ef94c..00000000 --- a/.travis.yml +++ /dev/null @@ -1,10 +0,0 @@ -language: java - -jdk: - - openjdk8 - -install: - - mvn test-compile -DskipTests=true -Dmaven.javadoc.skip=true -B -V - -after_success: - - mvn clean test cobertura:cobertura jacoco:report coveralls:report \ No newline at end of file From 1de8234d3d9abcb858afd2ea18509e91bd1addd6 Mon Sep 17 00:00:00 2001 From: Rincy Mathew Date: Wed, 3 Feb 2021 13:51:35 -0600 Subject: [PATCH 2/2] Added build badge --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index e4c6447f..73d56f50 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -[![Build Status](https://travis-ci.org/TAMULib/Weaver-Webservice-Core.svg?branch=2.x)](https://travis-ci.org/TAMULib/Weaver-Webservice-Core) +[![Build Status](https://github.com/TAMULib/Weaver-Webservice-Core/workflows/Build/badge.svg?branch=2.x)](https://github.com/TAMULib/Weaver-Webservice-Core) [![Coverage Status](https://coveralls.io/repos/github/TAMULib/Weaver-Webservice-Core/badge.svg?branch=2.x)](https://coveralls.io/github/TAMULib/Weaver-Webservice-Core?branch=2.x) Webservice-Core