Skip to content

Commit

Permalink
chore(actions): run snapshot validations on release branches (#306)
Browse files Browse the repository at this point in the history
References #285
  • Loading branch information
mcollovati authored Oct 21, 2023
1 parent 9267c19 commit 78a5b27
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
7 changes: 5 additions & 2 deletions .github/actions/run-validation/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,14 @@ runs:
shell: bash
run: |
set -x -e -o pipefail
mvn -B -N -ntp versions:set-property -Dproperty=hilla.version -DnewVersion=${{ inputs.hilla_version }} -DgenerateBackupPoms=false
if [[ "${{ inputs.hilla_version }}" != "main-SNAPSHOT" ]]; then
mvn -B -N -ntp versions:set-property -Dproperty=hilla.version -DnewVersion=${{ inputs.hilla_version }} -DgenerateBackupPoms=false
fi
if [[ "${{ inputs.skip_vaadin_version_detection }}" == "false" ]]; then
vaadin_version=$(mvn -ntp -N -Pdetect-vaadin-platform -q)-SNAPSHOT
hilla_version=$(mvn -ntp -N -q help:evaluate -Dexpression=hilla.version -DforceStdout)
mvn -B -ntp versions:set-property -Dproperty=vaadin.version -DnewVersion=$vaadin_version -DgenerateBackupPoms=false -Pit-tests
echo "Running Validation with Hilla ${{ inputs.hilla_version }} and Vaadin $vaadin_version">> "$GITHUB_STEP_SUMMARY"
echo "Running Validation for Hilla $hilla_version and Vaadin $vaadin_version ">> "$GITHUB_STEP_SUMMARY"
fi
mvn -V -e -B -ntp -DskipTests -Dmaven.javadoc.skip=false install
- name: Test
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/validation-nightly.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ on:
- cron: '0 1 * * *'
jobs:
snapshot-main:
name: "Quarkus-Hilla main"
name: "Quarkus-Hilla"
strategy:
fail-fast: false
matrix:
hilla: ["2.3-SNAPSHOT", "2.2-SNAPSHOT", "2.1-SNAPSHOT"]
branch: ["main", "2.2", "2.1"]
java: [ 17, 20 ]
runs-on: ubuntu-latest
timeout-minutes: 30
Expand All @@ -18,9 +18,9 @@ jobs:
uses: actions/checkout@v3
- uses: ./.github/actions/run-validation
with:
ref: ${{ github.event_name == 'schedule' && 'main' || github.ref }}
ref: ${{ matrix.branch }}
java_version: ${{ matrix.java }}
hilla_version: ${{ matrix.hilla }}
hilla_version: ${{ matrix.branch }}-SNAPSHOT
snapshot-1_0:
name: "Quarkus-Hilla 1.x"
strategy:
Expand Down

0 comments on commit 78a5b27

Please sign in to comment.