From 91eb58e61aa630fd0f8cbdc294129bf92290c3b6 Mon Sep 17 00:00:00 2001 From: sirReeall <35725129+sirReeall@users.noreply.github.com> Date: Fri, 24 Jul 2020 17:49:49 +0100 Subject: [PATCH] added checkstyle --- Dockerfile | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Dockerfile b/Dockerfile index 98e0c1db..08d12dcc 100644 --- a/Dockerfile +++ b/Dockerfile @@ -187,6 +187,17 @@ RUN wget https://storage.googleapis.com/dart-archive/channels/stable/release/${D RUN echo "http://dl-cdn.alpinelinux.org/alpine/edge/testing/" >> /etc/apk/repositories \ && apk add --update --no-cache rakudo zef +###################### +# Install CheckStyle # +###################### + +RUN CHECKSTYLE_LATEST=$(curl -s https://api.github.com/repos/checkstyle/checkstyle/releases/latest \ + | grep browser_download_url \ + | grep ".jar" \ + | cut -d '"' -f 4) \ + && curl -sSL $CHECKSTYLE_LATEST \ + --output /usr/bin/checkstyle.jar + ########################################### # Load GitHub Env Vars for GitHub Actions # ###########################################