Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
FROM openjdk:17-alpine

ENV REVIEWDOG_VERSION=v0.14.1

RUN wget -O - -q https://raw.githubusercontent.com/reviewdog/reviewdog/master/install.sh | sh -s -- -b /usr/local/bin/ ${REVIEWDOG_VERSION}
RUN wget -q https://github.com/pmd/pmd/releases/download/pmd_releases%2F6.51.0/pmd-bin-6.51.0.zip \
&& unzip pmd-bin-6.51.0.zip

RUN apk add --no-cache git
COPY entrypoint.sh /entrypoint.sh

COPY entrypoint.sh /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2020 reviewdog developers
Copyright (c) 2022 kemsakurai

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ jobs:
name: PMD job
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Run PMD
uses: kemsakurai/action-pmd@master
with:
Expand Down
6 changes: 1 addition & 5 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,7 @@ export REVIEWDOG_GITHUB_API_TOKEN="${INPUT_GITHUB_TOKEN}"
printenv
ls

# fetch pmd of a requested version
wget -q "https://github.com/pmd/pmd/releases/download/pmd_releases%2F6.51.0/pmd-bin-6.51.0.zip"
unzip pmd-bin-6.51.0.zip

exec /bin/sh ./pmd-bin-6.51.0/bin/run.sh pmd -d "${INPUT_SRC_PATH}" -R "${INPUT_RULESETS_PATH}" -f emacs \
exec /bin/sh /pmd-bin-6.51.0/bin/run.sh pmd -d "${INPUT_SRC_PATH}" -R "${INPUT_RULESETS_PATH}" -f emacs \
| reviewdog -efm="%f:%l: %m" \
-name="${INPUT_TOOL_NAME}" \
-reporter="${INPUT_REPORTER:-github-pr-check}" \
Expand Down