-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Cosme Escobedo
committed
Jul 27, 2020
0 parents
commit fe7b3cb
Showing
4 changed files
with
36 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
FROM php:7.1-cli | ||
|
||
LABEL "com.github.actions.name"="GA-PHPLint" | ||
LABEL "com.github.actions.description"="Run PHP linter on PR" | ||
LABEL "com.github.actions.icon"="aperture" | ||
LABEL "com.github.actions.color"="blue" | ||
|
||
LABEL version="0.0.1" | ||
LABEL repository="https://github.com/justia/ga-phplint-7.1" | ||
LABEL homepage="https://github.com/justia/ga-phplint-7.1" | ||
|
||
RUN apt-get update && apt-get -y install zip unzip | ||
|
||
RUN curl -sS https://getcomposer.org/installer | php -- \ | ||
--install-dir=/usr/bin --filename=composer && chmod +x /usr/bin/composer | ||
|
||
RUN mkdir /phplint && cd /phplint && composer require overtrue/phplint && ln -s /phplint/vendor/bin/phplint /usr/local/bin/phplint | ||
|
||
COPY "entrypoint.sh" "/entrypoint.sh" | ||
RUN chmod +x /entrypoint.sh | ||
ENTRYPOINT ["/entrypoint.sh"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# GA-PHPLint7.1 | ||
PHP 7.1 linter. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# action.yml | ||
name: 'PHPLint' | ||
description: 'Run PHP lint on PR' | ||
outputs: | ||
pass: # if code ok | ||
description: 'Codes passes linter' | ||
runs: | ||
using: 'docker' | ||
image: 'Dockerfile' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
phplint ./ |