fixed okhttp decorator errors and updated tests #834
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: ci | |
on: | |
push: | |
branches: | |
- '**' | |
pull_request: | |
branches: | |
- master | |
- development | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event.pull_request.number }} | |
cancel-in-progress: true | |
jobs: | |
test: | |
name: Test | |
runs-on: ubuntu-latest | |
services: | |
redis: | |
image: redis | |
ports: | |
- 6379:6379 | |
strategy: | |
fail-fast: false | |
matrix: | |
jdk: | |
- '8' | |
- '11' | |
- '19' | |
env: | |
ARTIFACTORY_USER: ${{ secrets.ARTIFACTORY_USER }} | |
ARTIFACTORY_TOKEN: ${{ secrets.ARTIFACTORY_TOKEN }} | |
SONAR_TOKEN: ${{ secrets.SONARQUBE_TOKEN }} | |
MAVEN_OPTS: "-XX:InitialHeapSize=2G -XX:MaxHeapSize=2G -XX:+PrintCommandLineFlags -XX:ThreadStackSize=65536 -XX:-TieredCompilation -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn" | |
muteProps: "true" | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Setup JDK ${{ matrix.jdk }} | |
uses: actions/setup-java@v3 | |
with: | |
distribution: 'adopt' | |
java-version: ${{ matrix.jdk }} | |
- name: Setup Maven | |
run: cp .ci.settings.xml ${HOME}/.m2/settings.xml | |
- name: Test | |
if: matrix.jdk == '8' && github.event_name == 'pull_request' && github.ref != 'refs/heads/master' && github.ref != 'refs/heads/development' | |
run: mvn --batch-mode clean install | |
- name: Linter | |
if: matrix.jdk == '8' && github.event_name == 'pull_request' && github.ref != 'refs/heads/master' && github.ref != 'refs/heads/development' | |
run: mvn checkstyle::check | |
- name: Deploy | |
if: matrix.jdk == '8' && github.event_name == 'push' && github.ref != 'refs/heads/master' && github.ref != 'refs/heads/development' | |
run: mvn --batch-mode deploy -P test | |
- name: SonarQube Scan (Push) | |
if: matrix.jdk == '11' && github.event_name == 'push' && (github.ref == 'refs/heads/master' || github.ref == 'refs/heads/development') | |
run: | | |
mvn --batch-mode clean verify sonar:sonar \ | |
-Dsonar.branch.name=${{ github.ref_name }} | |
- name: SonarQube Scan (Pull Request) | |
if: matrix.jdk == '11' && github.event_name == 'pull_request' | |
run: | | |
mvn --batch-mode clean verify sonar:sonar \ | |
-Dsonar.pullrequest.key=${{ github.event.pull_request.number }} \ | |
-Dsonar.pullrequest.branch=${{ github.event.pull_request.head.ref }} \ | |
-Dsonar.pullrequest.base=${{ github.event.pull_request.base.ref }} |