Skip to content

Commit

Permalink
Add github CI config
Browse files Browse the repository at this point in the history
  • Loading branch information
grote committed Jul 11, 2024
1 parent 76f3edd commit 9d77dd4
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -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'

0 comments on commit 9d77dd4

Please sign in to comment.