opentelemetry-java-contrib/.github/workflows/pr-build.yml

55 lines
1.4 KiB
YAML

name: "PR Build"
on:
pull_request:
branches:
- main
jobs:
build:
name: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Setup Java 11
uses: actions/setup-java@v2
with:
distribution: adopt
java-version: 11
- uses: burrunan/gradle-cache-action@v1
name: Build
with:
arguments: --stacktrace build
remote-build-cache-proxy-enabled: false
- uses: actions/upload-artifact@v2
name: Save unit test results
if: always()
with:
name: test-results
path: jmx-metrics/build/reports/tests/test
integration-test:
name: integration-test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Setup Java 11
uses: actions/setup-java@v2
with:
distribution: adopt
java-version: 11
- uses: burrunan/gradle-cache-action@v1
name: Integration Tests
with:
arguments: --stacktrace integrationTest
remote-build-cache-proxy-enabled: false
- uses: actions/upload-artifact@v2
name: Save integrationTest results
if: always()
with:
name: integration-test-results
path: jmx-metrics/build/reports/tests/integrationTest