diff --git a/.github/workflows/maven-v3.yml b/.github/workflows/maven-v3.yml new file mode 100644 index 0000000..7118387 --- /dev/null +++ b/.github/workflows/maven-v3.yml @@ -0,0 +1,55 @@ +# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time +# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-maven + +# This workflow uses actions that are not certified by GitHub. +# They are provided by a third-party and are governed by +# separate terms of service, privacy policy, and support +# documentation. + +name: Java CI with Maven + +on: + push: + branches: [ "v3.x" ] + pull_request: + branches: [ "v3.x" ] + +jobs: + build-vaadin14: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Set up JDK + uses: actions/setup-java@v3 + with: + java-version: '8' + distribution: 'temurin' + cache: maven + - name: Build (Vaadin 14) + run: mvn -B package --file pom.xml + + build-vaadin23: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Set up JDK + uses: actions/setup-java@v3 + with: + java-version: '11' + distribution: 'temurin' + cache: maven + - name: Build (Vaadin 23) + run: mvn -B package --file pom.xml -Pv23 + + build-vaadin24: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Set up JDK + uses: actions/setup-java@v3 + with: + java-version: '17' + distribution: 'temurin' + cache: maven + - name: Build (Vaadin 24) + run: mvn -B package --file pom.xml -Pv24 \ No newline at end of file diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index 007af27..13ec804 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -15,32 +15,6 @@ on: branches: [ "master" ] jobs: - build-vaadin14: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - name: Set up JDK - uses: actions/setup-java@v3 - with: - java-version: '8' - distribution: 'temurin' - cache: maven - - name: Build (Vaadin 14) - run: mvn -B package --file pom.xml - - build-vaadin23: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - name: Set up JDK - uses: actions/setup-java@v3 - with: - java-version: '11' - distribution: 'temurin' - cache: maven - - name: Build (Vaadin 23) - run: mvn -B package --file pom.xml -Pv23 - build-vaadin24: runs-on: ubuntu-latest steps: