CI: run integration tests with Github Actions #14
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 -B -q -Dspotbugs.skip=true -Dspotless.check.skip=true test | |
integration_test: | |
name: "Check if BlazingMQ Java SDK pass integration 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: 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 | |
run: mvn -DskipUnitTests=true -Dspotbugs.skip=true -Dit.dockerImage=bmqbrkr:latest verify |