From e0e0cf76d0e41def0c5f1db791ef6017c6be4544 Mon Sep 17 00:00:00 2001 From: Benedikt Fein Date: Fri, 27 Sep 2024 14:56:18 +0200 Subject: [PATCH 1/2] ci: remove unused TravisCI pipeline --- .travis.yml | 10 ---------- README.md | 3 +-- 2 files changed, 1 insertion(+), 12 deletions(-) delete mode 100644 .travis.yml 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 From 7ce57b9a7ab4829763dc87a2f4b98aa41fdaab0f Mon Sep 17 00:00:00 2001 From: Benedikt Fein Date: Fri, 27 Sep 2024 14:56:28 +0200 Subject: [PATCH 2/2] ci: add basic GitHub Actions pipeline --- .github/workflows/maven-test.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/maven-test.yml 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 }}