diff --git a/.github/workflows/maven-test.yml b/.github/workflows/maven-test.yml new file mode 100644 index 000000000..198c2ad45 --- /dev/null +++ b/.github/workflows/maven-test.yml @@ -0,0 +1,26 @@ +name: Build & Test + +on: + push: + pull_request: + +jobs: + build_and_test: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + + - name: Set up JDK + uses: actions/setup-java@v4 + with: + java-version: "17" + distribution: "temurin" + cache: maven + + - name: Run tests + run: mvn --batch-mode --update-snapshots test jacoco:report + + - uses: codecov/codecov-action@v4 + with: + token: ${{ secrets.CODECOV_TOKEN }} diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 7022120bf..000000000 --- a/.travis.yml +++ /dev/null @@ -1,10 +0,0 @@ -language: java - -sudo: false # faster builds - -script: - - mvn clean - - mvn test jacoco:report - -after_success: - - bash <(curl -s https://codecov.io/bash) diff --git a/README.md b/README.md index af7684230..a2072a463 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,6 @@ ![LitterBox Logo](src/main/resources/litterbox.png "LitterBox Logo") -![License LGPL v3](https://img.shields.io/github/license/se2p/LitterBox?color=blue&style=flat-square) -![Travis (.org)](https://img.shields.io/travis/se2p/LitterBox?style=flat-square) +![License GPL v3](https://img.shields.io/github/license/se2p/LitterBox?color=blue&style=flat-square) ![Codecov](https://img.shields.io/codecov/c/github/se2p/LitterBox?style=flat-square) LitterBox is a static code analysis tool for detecting bugs in