|
| 1 | +name: Test against RabbitMQ 3.12 stable |
| 2 | + |
| 3 | +on: |
| 4 | + pull_request: |
| 5 | + branches: |
| 6 | + - 5.14.x-stable |
| 7 | + push: |
| 8 | + branches: |
| 9 | + - 5.14.x-stable |
| 10 | + workflow_dispatch: |
| 11 | + |
| 12 | +jobs: |
| 13 | + build: |
| 14 | + runs-on: ubuntu-22.04 |
| 15 | + |
| 16 | + steps: |
| 17 | + - uses: actions/checkout@v3 |
| 18 | + - name: Checkout tls-gen |
| 19 | + uses: actions/checkout@v3 |
| 20 | + with: |
| 21 | + repository: rabbitmq/tls-gen |
| 22 | + path: './tls-gen' |
| 23 | + - name: Set up Python |
| 24 | + uses: actions/setup-python@v4 |
| 25 | + with: |
| 26 | + python-version: '3.x' |
| 27 | + - name: Set up JDK |
| 28 | + uses: actions/setup-java@v3 |
| 29 | + with: |
| 30 | + distribution: 'temurin' |
| 31 | + java-version: '17' |
| 32 | + cache: 'maven' |
| 33 | + server-id: ossrh |
| 34 | + server-username: MAVEN_USERNAME |
| 35 | + server-password: MAVEN_PASSWORD |
| 36 | + gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }} |
| 37 | + gpg-passphrase: MAVEN_GPG_PASSPHRASE |
| 38 | + - name: Start cluster |
| 39 | + run: ci/start-cluster.sh |
| 40 | + - name: Get dependencies |
| 41 | + run: make deps |
| 42 | + - name: Test with NIO |
| 43 | + run: | |
| 44 | + ./mvnw verify -P '!setup-test-cluster,use-nio' -Drabbitmqctl.bin=DOCKER:rabbitmq \ |
| 45 | + -Dtest-broker.A.nodename=rabbit@$(hostname) -Dtest-broker.B.nodename=hare@$(hostname) \ |
| 46 | + -Dmaven.javadoc.skip=true \ |
| 47 | + -Dtest-client-cert.password= -Dtest-tls-certs.dir=rabbitmq-configuration/tls \ |
| 48 | + --no-transfer-progress |
| 49 | + - name: Test with blocking IO |
| 50 | + run: | |
| 51 | + ./mvnw verify -P '!setup-test-cluster' -Drabbitmqctl.bin=DOCKER:rabbitmq \ |
| 52 | + -Dtest-broker.A.nodename=rabbit@$(hostname) -Dtest-broker.B.nodename=hare@$(hostname) \ |
| 53 | + -Dmaven.javadoc.skip=true \ |
| 54 | + -Dtest-client-cert.password= -Dtest-tls-certs.dir=rabbitmq-configuration/tls \ |
| 55 | + --no-transfer-progress |
| 56 | + - name: Stop broker A |
| 57 | + run: docker stop rabbitmq && docker rm rabbitmq |
| 58 | + - name: Stop broker B |
| 59 | + run: docker stop hare && docker rm hare |
| 60 | + - name: Publish snapshot |
| 61 | + if: ${{ github.event_name != 'pull_request' }} |
| 62 | + run: ./mvnw clean deploy -Psnapshots -DskipITs -DskipTests --no-transfer-progress |
| 63 | + env: |
| 64 | + MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }} |
| 65 | + MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }} |
| 66 | + MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }} |
0 commit comments