Skip to content

ADST-570 (#357)

ADST-570 (#357) #1442

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/ya-pmd-scan@v4.0.0
with:
fail-on-new-issues: "false"
create-github-annotations: "false"
classpath-enable: "false"
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK 18
uses: actions/setup-java@v1
with:
java-version: 18
- uses: actions/cache@v3
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@v3
with:
name: libs
path: ./app/build/outputs/apk/**/*.apk