Skip to content

Commit

Permalink
Merge pull request #10 from DVDAndroid/dvd/always-latest-version
Browse files Browse the repository at this point in the history
Always use latest version
  • Loading branch information
renatoabreu11 authored Jul 29, 2020
2 parents 2d701d8 + 735b27f commit 58b3c38
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
FROM alpine:3.11

RUN apk --no-cache --update add git curl openjdk11 \
RUN apk --no-cache --update add git curl wget openjdk11 \
&& rm -rf /var/cache/apk/*

RUN wget -O - -q https://raw.githubusercontent.com/reviewdog/reviewdog/master/install.sh | sh -s -- -b /usr/local/bin/

RUN curl -sSLO https://github.com/pinterest/ktlint/releases/download/0.36.0/ktlint \
RUN curl -sSL https://api.github.com/repos/pinterest/ktlint/releases/latest \
| grep "browser_download_url.*ktlint\"" \
| cut -d : -f 2,3 \
| tr -d \" \
| wget -qi -\
&& chmod a+x ktlint \
&& mv ktlint /usr/local/bin/

Expand Down
1 change: 1 addition & 0 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,6 @@ cd "$GITHUB_WORKSPACE"

export REVIEWDOG_GITHUB_API_TOKEN="${INPUT_GITHUB_TOKEN}"

echo KtLint version: "$(ktlint --version)"
ktlint --reporter=checkstyle $RELATIVE $ANDROID \
| reviewdog -f=checkstyle -name="ktlint" -reporter="${INPUT_REPORTER}" -level="${INPUT_LEVEL}"

0 comments on commit 58b3c38

Please sign in to comment.