Closed ChadTaljaardt closed 4 years ago
@ChadTaljaardt
.github/workflows/reviewdog.yml
.name: reviewdog
on: [pull_request]
jobs:
eslint:
name: runner / eslint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: eslint
uses: reviewdog/action-eslint@v1
with:
github_token: ${{ secrets.github_token }}
reporter: github-pr-review # Change reporter.
eslint_flags: 'user_interface/' # <-- Target source directory
https://github.com/<your_name>/<your_repo>/actions
)See also:
@jiro4989 Thanks for your response, i already tried to do what you suggested. This is the error i'm getting which i think is caused because the command isn't being run in the user_interface
folder.
npm WARN saveError ENOENT: no such file or directory, open '/github/workspace/package.json'
npm notice created a lockfile as package-lock.json. You should commit this file.
npm WARN enoent ENOENT: no such file or directory, open '/github/workspace/package.json'
npm WARN workspace No description
npm WARN workspace No repository field.
npm WARN workspace No README data
npm WARN workspace No license field.
up to date in 0.561s
found 0 vulnerabilities
/entrypoint.sh: line 11: /github/workspace/node_modules/.bin/eslint: not found
/entrypoint.sh: line 15: /github/workspace/node_modules/.bin/eslint: not found
Hello,
I am new to working with Github actions.
I am trying to run this action on a "user_interface" sub directory, can anyone explain to me how to do this?
Thanks!