Oomph project build: only new projects #161
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: Java CI with Maven (macOS) | |
on: | |
push: | |
paths-ignore: | |
- '**.md' | |
# Sequence of patterns matched against refs/heads | |
branches: | |
# Push events on the main branch | |
- master | |
pull_request: | |
paths-ignore: | |
- '**.md' | |
jobs: | |
build: | |
runs-on: macos-12 | |
steps: | |
- uses: actions/checkout@v2.5.0 | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v3.6.0 | |
with: | |
java-version: 17 | |
distribution: temurin | |
- name: Cache Maven packages | |
uses: actions/cache@v3 | |
with: | |
path: | | |
~/.m2 | |
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml', '**/*.target') }} | |
restore-keys: ${{ runner.os }}-m2- | |
- name: Build with Maven | |
run: > | |
./mvnw -f releng/org.eclipse.emf.parsley.parent/pom.xml | |
-Prcp-build | |
clean verify | |
- name: Archive UI Tests Screenshots | |
uses: actions/upload-artifact@v2 | |
if: ${{ failure() || cancelled() }} | |
with: | |
name: screenshots-${{ runner.os }} | |
path: '**/screenshots' | |
- name: Archive Logs | |
uses: actions/upload-artifact@v2 | |
if: ${{ failure() || cancelled() }} | |
with: | |
name: logs-${{ runner.os }} | |
path: '**/target/work/data/.metadata/.log' |