-
Notifications
You must be signed in to change notification settings - Fork 623
66 lines (53 loc) · 1.84 KB
/
verify-staged-artifacts.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
name: Verify Staged Artifacts
on:
workflow_dispatch:
inputs:
releaseVersion:
description: 'Release version like 5.0.0-M1, 5.1.0-RC1, 5.2.0 etc.'
required: true
type: string
jobs:
verify-staged-with-samples:
runs-on: ubuntu-latest
services:
rabbitmq:
image: rabbitmq:management
env:
RABBITMQ_SERVER_ADDITIONAL_ERL_ARGS: -rabbitmq_stream advertised_host localhost
ports:
- 5672:5672
- 15672:15672
- 5552:5552
steps:
- name: Wait RabbitMQ is Up
run: docker exec ${{ job.services.rabbitmq.id }} rabbitmqctl wait --pid 1 --timeout 60
- name: Enable RabbitMQ Stream Plugin
run: docker exec ${{ job.services.rabbitmq.id }} rabbitmq-plugins enable rabbitmq_stream
- name: Checkout Samples Repo
uses: actions/checkout@v4
with:
repository: spring-projects/spring-amqp-samples
ref: ${{ github.ref_name }}
show-progress: false
- name: Set up JDK
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 17
cache: 'maven'
- uses: jfrog/setup-jfrog-cli@v4
env:
JF_ENV_SPRING: ${{ secrets.JF_ARTIFACTORY_SPRING }}
- name: Configure JFrog Cli
run: jf mvnc --repo-resolve-releases=libs-release-staging --repo-resolve-snapshots=snapshot
- name: Verify samples against staged release
run: |
mvn versions:set -DnewVersion=${{ inputs.releaseVersion }} -DgenerateBackupPoms=false -DprocessAllModules=true -B -ntp
jf mvn verify -B -ntp
- name: Capture Test Results
if: failure()
uses: actions/upload-artifact@v4
with:
name: test-results
path: '**/target/surefire-reports/**/*.*'
retention-days: 1