Refactor config package (#528) #686
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: Test report | |
on: | |
workflow_dispatch: | |
pull_request: | |
push: | |
env: | |
MAVEN_OPTS: -Dmaven.wagon.http.retryHandler.class=standard -Dmaven.wagon.http.retryHandler.count=3 -Dhttp.keepAlive=false -Dmaven.wagon.http.pool=false -Dmaven.wagon.httpconnectionManager.ttlSeconds=120 | |
jobs: | |
tests: | |
runs-on: ubuntu-20.04 | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- name: "Unit tests" | |
test_suite: 'test jacoco:report' | |
- name: "Style check" | |
test_suite: 'compile com.mycila:license-maven-plugin:check pmd:pmd pmd:cpd pmd:check pmd:cpd-check javadoc:jar' | |
- name: "OSGi integration" | |
test_suite: 'install -P docker-integration-test,osgi-integration-tests -DskipUTs' | |
- name: "Standalone integration 4.0" | |
test_suite: 'verify -P docker-integration-test,standalone-integration-tests -DskipUTs' | |
- name: "Standalone integration 4.1" | |
test_suite: 'verify -P docker-integration-test,standalone-integration-tests -Dit.cassandra.version=4.1 -DskipUTs' | |
- name: "Python integration" | |
test_suite: 'verify -P docker-integration-test,python-integration-tests -DskipUTs' | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Cache local Maven repository | |
uses: actions/cache@v3 | |
with: | |
path: ~/.m2/repository | |
key: build-${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} | |
restore-keys: | | |
build-${{ runner.os }}-maven- | |
- name: Set up JDK | |
uses: actions/setup-java@v3 | |
with: | |
java-version: 11 | |
distribution: 'temurin' | |
- uses: actions/checkout@v3 | |
- name: Set up Python 3.8 | |
uses: actions/setup-python@v4 | |
with: | |
python-version: 3.8 | |
- name: install dependencies | |
run: mvn install -DskipTests=true | |
- run: mvn $TEST_SUITE -B | |
env: | |
TEST_SUITE: ${{ matrix.test_suite }} | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v3 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
files: > | |
./rest/target/site/jacoco/jacoco.xml, | |
./core.osgi/target/site/jacoco/jacoco.xml, | |
./application/target/site/jacoco/jacoco.xml, | |
./osgi-integration/target/site/jacoco/jacoco.xml, | |
./core/target/site/jacoco/jacoco.xml, | |
./fm.impl/target/site/jacoco/jacoco.xml, | |
./connection/target/site/jacoco/jacoco.xml |