From ceff817bc9e1af81cf007411dc11192c0c700cb1 Mon Sep 17 00:00:00 2001 From: Luca Piccarreta Date: Tue, 31 Jan 2023 02:22:13 +0100 Subject: [PATCH] Implement simple GitHub CI (#420) Provides a simple GitHub Actions powered CI, that builds on every PR and merge to main, and provides downloadable repository zips for testing or deployment. --- .github/workflows/build.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 00000000..d9c17e93 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,24 @@ +name: Java CI + +on: [push,pull_request] + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + + - name: Set up JDK 17 + uses: actions/setup-java@v3 + with: + java-version: '17' + distribution: 'adopt' + + - name: Build with Maven + run: mvn --batch-mode --update-snapshots package + + - uses: actions/upload-artifact@v3 + with: + name: repository + path: repo/target/repository/