Bump radcortez/project-metadata-action from 243817f1e0f2b4df4e012fc17efc45cff166425d to 203f7ffba8db2669b2c9b4d4c2e90b186c588fa5 #3153
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
# This workflow will build a Java project with Maven | |
name: Build and Unit tests | |
on: | |
push: | |
branches: | |
- 'main' | |
- "[0-9]+.[0-9]+.x" | |
pull_request: | |
branches: | |
- 'main' | |
- "[0-9]+.[0-9]+.x" | |
types: [ opened, reopened, synchronize ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up JDK 11 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: 11 | |
distribution: 'temurin' | |
cache: 'maven' | |
- name: Build and run Unit tests | |
run: mvn install --file pom.xml --no-transfer-progress -Dno-format | |
- name: Save Build Context | |
run: echo "$GITHUB_CONTEXT" > target/build-context.json | |
env: | |
GITHUB_CONTEXT: ${{ toJson(github) }} | |
- name: Attach Build Output | |
uses: actions/upload-artifact@v3 | |
with: | |
name: target | |
path: | | |
**/target/ | |
!**/target/**/*.jar |