Skip to content

Commit

Permalink
chore(actions): run snapshot validations on release branches
Browse files Browse the repository at this point in the history
References #285
  • Loading branch information
mcollovati committed Oct 15, 2023
1 parent 31de4c0 commit 4da1f3c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
4 changes: 3 additions & 1 deletion .github/actions/run-validation/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,9 @@ 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
mvn -B -ntp versions:set-property -Dproperty=vaadin.version -DnewVersion=$vaadin_version -DgenerateBackupPoms=false -Pit-tests
Expand Down
8 changes: 5 additions & 3 deletions .github/workflows/validation-nightly.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ jobs:
strategy:
fail-fast: false
matrix:
hilla: ["2.3-SNAPSHOT", "2.2-SNAPSHOT", "2.1-SNAPSHOT"]
branch: ["main", "2.2", "2.1"]
#hilla: ["2.3-SNAPSHOT", "2.2-SNAPSHOT", "2.1-SNAPSHOT"]
java: [ 17, 20 ]
runs-on: ubuntu-latest
timeout-minutes: 30
Expand All @@ -18,9 +19,10 @@ jobs:
uses: actions/checkout@v3
- uses: ./.github/actions/run-validation
with:
ref: ${{ github.event_name == 'schedule' && 'main' || github.ref }}
#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 4da1f3c

Please sign in to comment.