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 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