[CI] Adjust CI to test the corresponding Pulsar image version #1457
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: pulsar io qpid-jms integration tests | |
on: | |
pull_request: | |
branches: | |
- master | |
- branch-* | |
push: | |
branches: | |
- master | |
- branch-* | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v1 | |
with: | |
java-version: 17 | |
- name: clean disk | |
if: ${{ steps.check_changes.outputs.docs_only != 'true' }} | |
run: | | |
sudo rm -rf /usr/share/dotnet /usr/local/lib/android /opt/ghc | |
sudo apt clean | |
docker rmi $(docker images -q) -f | |
df -h | |
- name: Build with Maven skipTests | |
run: | | |
mvn clean install -DskipTests | |
cd tests/src/test/resources | |
readonly IMAGE_NAME=pulsar-io-amqp-1-0:test | |
readonly PULSAR_VERSION=$(cat ../PULSAR_VERSION) | |
docker build --build-arg PULSAR_IMAGE_TAG="${PULSAR_VERSION}" -t "${IMAGE_NAME}" . | |
- name: tests module | |
run: mvn test -pl tests | |
- name: package surefire artifacts | |
if: failure() | |
run: | | |
rm -rf artifacts | |
mkdir artifacts | |
find . -type d -name "*surefire*" -exec cp --parents -R {} artifacts/ \; | |
zip -r artifacts.zip artifacts | |
- uses: actions/upload-artifact@master | |
name: upload surefire-artifacts | |
if: failure() | |
with: | |
name: surefire-artifacts | |
path: artifacts.zip |