Skip to content

Commit

Permalink
PMD implementation in GitHub action (#294)
Browse files Browse the repository at this point in the history
* PMD implementation in GitHub action

* Update build.yml
  • Loading branch information
omkaryadv177 committed Sep 11, 2023
1 parent 9f23300 commit 7bac9c8
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,23 @@
---
name: build

on: push
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@v2.0.2
with:
fail-on-new-issues: "false"
create-github-annotations: "false"
build:
runs-on: ubuntu-latest

Expand Down

0 comments on commit 7bac9c8

Please sign in to comment.