From 7ce57b9a7ab4829763dc87a2f4b98aa41fdaab0f Mon Sep 17 00:00:00 2001 From: Benedikt Fein Date: Fri, 27 Sep 2024 14:56:28 +0200 Subject: [PATCH] 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 }}