[maven-release-plugin] prepare for next development iteration #770
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: kop mvn build check and kafka-impl test | |
on: | |
push: | |
branches: | |
- 3.1_ds | |
pull_request: | |
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: License check | |
run: mvn -ntp -B license:check | |
- name: Build with Maven skipTests | |
run: mvn clean install -ntp -B -DskipTests | |
- name: Spotbugs check | |
run: mvn -ntp -B spotbugs:check | |
- name: kafka-impl test after build | |
run: mvn test -ntp -B -DfailIfNoTests=false -pl kafka-impl | |
# The DistributedClusterTest is hard to pass in CI tests environment, we disable it first | |
# the track issue: https://github.com/streamnative/kop/issues/184 | |
# - name: DistributedClusterTest | |
# run: mvn test -ntp -B '-Dtest=DistributedClusterTest' -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 |