From 9d77dd4e39d1fde1e5c6b86729bcf48bc61be6cd Mon Sep 17 00:00:00 2001 From: Torsten Grote Date: Thu, 11 Jul 2024 09:24:10 -0300 Subject: [PATCH] Add github CI config --- .github/workflows/test.yml | 43 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..6cd5652 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,43 @@ +name: Test + +on: [ push, pull_request ] + +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + +jobs: + build: + name: Build + + runs-on: ubuntu-latest + steps: + - name: Checkout the code + uses: actions/checkout@v3 + + - name: Set up JDK 17 + uses: actions/setup-java@v3 + with: + distribution: 'corretto' + java-version: 17 + cache: 'gradle' + + - name: Validate Gradle Wrapper + uses: gradle/actions/wrapper-validation@v3 + + - name: Build + run: ./gradlew uberJar check + + - name: Upload JAR + uses: actions/upload-artifact@v3 + with: + name: seedvault-chunker-${{ github.sha }}-jar + path: | + app/build/libs/seedvault-chunker.jar + + - name: Publish Test Report + uses: mikepenz/action-junit-report@v4 + if: success() || failure() + with: + report_paths: '**/build/test-results/**/TEST-*.xml' +