github-actions: use v1 for the oblt-actions #200
Workflow file for this run
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: test | |
on: | |
push: | |
branches: [ "main" ] | |
paths-ignore: [ '*.md', '*.asciidoc' ] | |
pull_request: | |
branches: [ "main" ] | |
paths-ignore: [ '*.md', '*.asciidoc' ] | |
permissions: | |
contents: read | |
jobs: | |
pre-commit: | |
name: Run pre-commit | |
runs-on: ubuntu-latest | |
steps: | |
- uses: elastic/oblt-actions/pre-commit@v1 | |
goals: | |
runs-on: ubuntu-latest | |
timeout-minutes: 5 | |
strategy: | |
matrix: | |
goal: | |
- 'clean install -DskipTests=true -Dmaven.javadoc.skip=true license:aggregate-third-party-report -Dlicense.excludedGroups=^co.elastic.' | |
- 'test' | |
- 'compile javadoc:javadoc' | |
fail-fast: false | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: ./.github/workflows/maven-goal | |
with: | |
command: ./mvnw ${{ matrix.goal }} | |
- name: Store test results | |
if: matrix.goal == 'test' && (success() || failure()) | |
uses: actions/upload-artifact@v4 | |
with: | |
name: test-results | |
path: '**/target/surefire-reports' | |
- uses: actions/upload-artifact@v4 | |
if: contains(matrix.goal, 'license') | |
with: | |
name: license-report | |
path: target/site/aggregate-third-party-report.html |