Skip to content

CI: run integration tests with Github Actions #24

CI: run integration tests with Github Actions

CI: run integration tests with Github Actions #24

Workflow file for this run

name: Tests
on:
push:
branches:
- main
pull_request:
branches:
- main
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
# build_and_test:
# name: "Check if BlazingMQ Java SDK can build and pass unit tests with JDK ${{ matrix.Java }}"
# runs-on: ubuntu-latest
# strategy:
# matrix:
# java: [ '8', '11', '17' ]
# steps:
# - uses: actions/checkout@v3
# - uses: actions/setup-java@v3
# with:
# distribution: 'zulu'
# java-version: ${{ matrix.java }}
# - name: Build and run unit tests with Maven
# run: mvn --batch-mode --quiet -Dspotbugs.skip=true -Dspotless.check.skip=true test
# Pull docker image
# build_blazingmq_image:
# name: "Build BlazingMQ docker image"
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v3
# - name: Checkout BlazingMQ
# run: git clone https://github.com/bloomberg/blazingmq
# - name: Build BlazingMQ docker image
# working-directory: blazingmq
# run: docker compose -f docker/single-node/docker-compose.yaml build
integration_test:
name: "Check if BlazingMQ Java SDK pass integration tests with JDK ${{ matrix.Java }}"
# needs: build_blazingmq_image
runs-on: ubuntu-latest
strategy:
matrix:
java: [ '8' ] #, '11', '17' ]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: ${{ matrix.java }}
- name: Checkout BlazingMQ
run: git clone https://github.com/bloomberg/blazingmq
- name: Build BlazingMQ docker image
working-directory: blazingmq
run: docker compose -f docker/single-node/docker-compose.yaml build
- name: Build and run integration tests with Maven
timeout-minutes: 30
run: mvn --batch-mode --quiet -DskipUnitTests=true -Dspotbugs.skip=true -Dspotless.check.skip=true -Dit.dockerImage=bmqbrkr:latest verify