generated from actions/container-toolkit-action
-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #65 from homoluctus/feature/migrate_to_yarn
Integrate yarn from npm
- Loading branch information
Showing
7 changed files
with
4,729 additions
and
6,697 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 |
---|---|---|
@@ -1,9 +1,7 @@ | ||
name: TS Lint Check | ||
name: lint | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- master | ||
paths: | ||
- src/* | ||
|
||
|
@@ -12,15 +10,35 @@ jobs: | |
name: Lint Check | ||
runs-on: ubuntu-18.04 | ||
steps: | ||
- uses: actions/checkout@master | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Setup Node | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: '12.x' | ||
|
||
- name: Setup TS | ||
run: npm install tslint typescript -g | ||
- name: Install prettier | ||
run: yarn --frozen-lockfile | ||
|
||
- name: Lint check with tslint | ||
run: tslint './src/*.ts' | ||
- name: Check | ||
id: lint_check | ||
run: | | ||
result=$(yarn run lint) | ||
echo "::set-output name=exit_code::$?" | ||
echo "::set-output name=result::$result" | ||
- uses: actions/[email protected] | ||
if: failure() && steps.lint_check.outputs.result != '' | ||
with: | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
script: | | ||
github.issues.createComment({ | ||
issue_number: context.issue.number, | ||
owner: context.repo.owner, | ||
repo: context.repo.repo, | ||
body: '### Prettier\n{ steps.lint_check.outputs.result }}' | ||
}) | ||
- name: Error exit | ||
if: ${{ steps.lint_check.outputs.exit_code }} != '0' | ||
run: exit 1 |
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,4 +1,5 @@ | ||
.node_repl_history | ||
.config/ | ||
.npm/ | ||
node_modules/ | ||
node_modules/ | ||
yarn-error.log |
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
Oops, something went wrong.