Skip to content

MOBILEAPPS-2120

MOBILEAPPS-2120 #1123

Workflow file for this run

---
name: build
on:
push:
pull_request:
jobs:
pmd_scan:
name: "PMD Scan"
runs-on: ubuntu-latest
if: >
github.event_name == 'pull_request' &&
!contains(github.event.head_commit.message, '[skip pmd]') &&
!contains(github.event.head_commit.message, '[force]')
steps:
- uses: Alfresco/[email protected]
with:
fail-on-new-issues: "false"
create-github-annotations: "false"
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK 18
uses: actions/setup-java@v1
with:
java-version: 18
- uses: actions/cache@v2
name: Cache gradle
with:
path: |
~/.m2
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties', '**/libs.versions.toml') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Build
run: ./gradlew assembleDebug
- name: Store Artifact
uses: actions/upload-artifact@v2
with:
name: libs
path: ./app/build/outputs/apk/**/*.apk