Merge pull request #96 from abashev/dependabot/maven/org.sonatype.plu… #96
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: Build with integration tests and code coverage | |
on: | |
push: | |
branches: [ branch-4.x.x ] | |
permissions: | |
checks: write | |
pull-requests: write | |
repository-projects: write | |
contents: write | |
jobs: | |
full-build: | |
strategy: | |
matrix: | |
environment: [AWS-1, YANDEX-1, YANDEX-2] | |
java-version: [8, 11] | |
environment: ${{ matrix.environment }} | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up JDK | |
uses: actions/setup-java@v3 | |
with: | |
java-version: ${{ matrix.java-version }} | |
distribution: 'liberica' | |
cache: 'maven' | |
- name: Build with Maven | |
run: mvn -B package | |
env: | |
BASE_URL: ${{ vars.BASE_URL }} | |
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
AWS_SECRET_KEY: ${{ secrets.AWS_SECRET_KEY }} | |
- name: Publish Unit Test Results | |
uses: EnricoMi/publish-unit-test-result-action@v2 | |
if: always() | |
with: | |
junit_files: "target/surefire-reports/junitreports/*.xml" | |
- name: Run Jacoco reports | |
run: mvn -V -B -e jacoco:report | |
- name: Submit codecov data | |
run: bash <(curl -s https://codecov.io/bash) |