diff --git a/.github/workflows/build-dev.yml b/.github/workflows/build-dev.yml new file mode 100644 index 0000000..73f06c0 --- /dev/null +++ b/.github/workflows/build-dev.yml @@ -0,0 +1,32 @@ +name: CI + +on: + push: + braches: [dev, main ] + pull_request: + branches: [dev, main ] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v2 + with: + path: build_dir + - uses: actions/setup-java@v2 + with: + distribution: 'adopt' + java-version: '8' + check-latest: true + - name: Gradle Check + run: | + cd $GITHUB_WORKSPACE/build_dir + ./gradlew check + - name: Jacoco Test + run: | + cd $GITHUB_WORKSPACE/build_dir + ./gradlew jacocoTestReport + - name: Codecov + uses: codecov/codecov-action@v1 + diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 85225bc..0000000 --- a/.travis.yml +++ /dev/null @@ -1,12 +0,0 @@ -language: java -sudo: true -dist: trusty -jdk: - - oraclejdk8 - -script: - - ./gradlew check - - ./gradlew jacocoTestReport - -after_success: - - bash <(curl -s https://codecov.io/bash) diff --git a/README.md b/README.md index bee7d45..8a57e94 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,8 @@ # ![Syn](https://cloud.githubusercontent.com/assets/2371345/23724175/2998ecb0-0422-11e7-9009-aee3f129633f.png) Syn -[![Build Status](https://travis-ci.com/Islandora/Syn.svg?branch=main)](https://travis-ci.com/Islandora/Syn) +[![Build Status](https://github.com/islandora/Syn/actions/workflows/build-dev.yml/badge.svg)](https://github.com/Islandora/Syn/actions) [![Contribution Guidelines](http://img.shields.io/badge/CONTRIBUTING-Guidelines-blue.svg)](./CONTRIBUTING.md) [![LICENSE](https://img.shields.io/badge/license-MIT-blue.svg?style=flat-square)](./LICENSE) -[![codecov](https://codecov.io/gh/Islandora/Syn/branch/main/graph/badge.svg)](https://codecov.io/gh/Islandora/Syn) +[![codecov](https://codecov.io/gh/Islandora/Syn/branch/main/graphs/badge.svg)](https://codecov.io/gh/Islandora/Syn) ## Introduction