From 3ac6444ba92969fe5da7efcfdef15d493201b829 Mon Sep 17 00:00:00 2001 From: Grzegorz Piwowarek Date: Sat, 17 Aug 2024 17:46:00 +0200 Subject: [PATCH] Add GitHub Actions workflows for version/** branches (#2796) --- .github/workflows/build-version.yml | 30 +++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/build-version.yml diff --git a/.github/workflows/build-version.yml b/.github/workflows/build-version.yml new file mode 100644 index 000000000..da2dd0e1b --- /dev/null +++ b/.github/workflows/build-version.yml @@ -0,0 +1,30 @@ +name: build +on: + push: + branches: + - version/** + pull_request: + branches: + - version/** + +jobs: + build: + runs-on: ubuntu-latest + strategy: + matrix: + java: [ '8', '11', '17'] + architecture: [ 'x64' ] + name: Build with JDK ${{ matrix.java }} on ${{ matrix.architecture }} + steps: + - uses: actions/checkout@v4 + - name: Setup JDK + uses: actions/setup-java@v4 + with: + distribution: 'adopt' + java-version: ${{ matrix.java }} + architecture: ${{ matrix.architecture }} + cache: 'maven' + + - name: Build with Maven + run: mvn test +