-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: move install and build to docker
- Loading branch information
Krzysztof Borowy
committed
Mar 11, 2020
1 parent
61668e6
commit 08ea0ae
Showing
6 changed files
with
31 additions
and
22 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 |
---|---|---|
|
@@ -4,12 +4,14 @@ COPY . /eslint_check_action | |
|
||
WORKDIR /eslint_check_action | ||
|
||
ENTRYPOINT ["/eslint_check_action/start.sh"] | ||
|
||
LABEL maintainer="Krzysztof Borowy <[email protected]>" | ||
LABEL com.github.actions.name="ESLint check action" | ||
LABEL com.github.actions.description="Run Eslint checks in project" | ||
LABEL com.github.actions.name="ESLint check" | ||
LABEL com.github.actions.description="Runs ESlint check in your project and annotate errors/warning in a PR." | ||
LABEL com.github.actions.icon="octagon" | ||
LABEL com.github.actions.color="green" | ||
|
||
RUN ["yarn", "install"] | ||
|
||
RUN ["yarn", "build"] | ||
|
||
ENTRYPOINT ["/eslint_check_action/start.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
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
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 |
---|---|---|
@@ -1,15 +1,14 @@ | ||
{ | ||
"name": "@krizzu/eslint-check-action", | ||
"version": "1.0.1", | ||
"version": "1.1.0", | ||
"description": "GitHub action running eslint check in your project, annotating errors/warnings in PR.", | ||
"main": "dist/index.js", | ||
"author": "Krzysztof Borowy <[email protected]>", | ||
"license": "MIT", | ||
"scripts": { | ||
"test": "tsc", | ||
"dev": "source .env && yarn build && node dist/index.js", | ||
"build": "rm -rf dist/ && babel src --out-dir dist/ --extensions .ts", | ||
"prepublishOnly": "yarn build" | ||
"build": "rm -rf dist/ && babel src --out-dir dist/ --extensions .ts" | ||
}, | ||
"dependencies": { | ||
"@actions/core": "1.2.0", | ||
|
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
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 |
---|---|---|
@@ -1,13 +1,13 @@ | ||
#!/bin/sh | ||
|
||
cd "/eslint_check_action" | ||
|
||
yarn install | ||
cd $GITHUB_WORKSPACE | ||
|
||
main=./dist/index.js | ||
|
||
if [ ! -f "$main" ]; then | ||
yarn build | ||
if [ ! -d "node_modules" ]; then | ||
echo "Repo dependencies not installed. Installing..." | ||
yarn install | ||
fi | ||
|
||
node "$main" | ||
cd "/eslint_check_action" || exit | ||
|
||
node "/eslint_check_action/dist/index.js" |