-
Notifications
You must be signed in to change notification settings - Fork 51
48 lines (40 loc) · 1.15 KB
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
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@v4
- name: Set up JDK
uses: actions/setup-java@v4
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)