|
name: Build |
|
on: |
|
pull_request: |
|
branches: '**' |
|
push: |
|
branches: |
|
- main |
|
|
|
jobs: |
|
verify: |
|
runs-on: ubuntu-latest |
|
|
|
steps: |
|
- uses: actions/checkout@v2 |
|
- name: Set up JDK 8 |
|
uses: actions/setup-java@v2 |
|
with: |
|
java-version: '8' |
|
distribution: 'adopt' |
|
- name: Run the Maven install phase |
|
run: mvn --batch-mode install |
|
- name: Run the Maven verify phase for the examples |
|
run: mvn -f examples/quota-management --batch-mode --update-snapshots verify |
|
|
|
# Upload code coverage report to Codecov |
|
- name: Test Coverage |
|
uses: codecov/codecov-action@v1 |
|
with: |
|
token: ${{ secrets.CODECOV_TOKEN }} |