From b71739ae45db326a89b70f71f311115fd3314ee8 Mon Sep 17 00:00:00 2001 From: Egon Willighagen Date: Tue, 11 Jun 2024 19:43:12 +0200 Subject: [PATCH] Added a GitHub Action to compile JChemPaint --- .github/workflows/maven.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/maven.yml diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml new file mode 100644 index 00000000..e7b6583c --- /dev/null +++ b/.github/workflows/maven.yml @@ -0,0 +1,30 @@ +name: build + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +permissions: + contents: read + +jobs: + build: + + runs-on: ubuntu-latest + strategy: + matrix: + java: [ 8, 11 ] + name: Java ${{ matrix.java }} + + steps: + - uses: actions/checkout@v4 + - name: Set up Java + uses: actions/setup-java@v4 + with: + distribution: 'temurin' + java-version: ${{ matrix.java }} + cache: maven + - name: Build with Maven + run: mvn clean install -q