This repository has been archived by the owner on Oct 28, 2024. It is now read-only.
[automation] Update Elastic stack release version source of truth (#2… #3277
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-test | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
paths: | |
- 'resources/**' | |
- 'src/**' | |
- 'vars/**' | |
- '.github/workflows/build-test.yml' | |
- '.mvn/*' | |
- 'pom.xml' | |
- 'mvnw' | |
# limit the access of the generated GITHUB_TOKEN | |
permissions: | |
contents: read | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up JDK 11 | |
uses: actions/setup-java@v4 | |
with: | |
java-version: '11' | |
distribution: 'adopt' | |
cache: 'maven' | |
- name: Build with Maven | |
run: mvn --batch-mode --update-snapshots package | |
- uses: v1v/otel-upload-test-artifact-action@v2 | |
if: success() || failure() | |
continue-on-error: true | |
with: | |
jobName: "build" | |
stepName: "Build with Maven" | |
path: "target/surefire-reports/*.xml" | |
type: "junit" | |
githubToken: ${{ secrets.GITHUB_TOKEN }} | |
- name: Store test results | |
if: success() || failure() | |
continue-on-error: true | |
uses: actions/upload-artifact@v3 | |
with: | |
name: test-results | |
path: "target/surefire-reports/*.xml" |