stefanoeb/eslint-action

Got an Error when I place package.json and source code in folder ./src

Opened this issue · 2 comments

Run stefanoeb/eslint-action@1.0.2
/usr/bin/docker run --name d4dbb9d6b7741c98fcec8fea66e769b_88b5bd --label 442333 --workdir /github/workspace --rm -e working-directory -e INPUT_FILES -e HOME -e GITHUB_JOB -e GITHUB_REF -e GITHUB_SHA -e GITHUB_REPOSITORY -e GITHUB_REPOSITORY_OWNER -e GITHUB_RUN_ID -e GITHUB_RUN_NUMBER -e GITHUB_RETENTION_DAYS -e GITHUB_ACTOR -e GITHUB_WORKFLOW -e GITHUB_HEAD_REF -e GITHUB_BASE_REF -e GITHUB_EVENT_NAME -e GITHUB_SERVER_URL -e GITHUB_API_URL -e GITHUB_GRAPHQL_URL -e GITHUB_WORKSPACE -e GITHUB_ACTION -e GITHUB_EVENT_PATH -e GITHUB_ACTION_REPOSITORY -e GITHUB_ACTION_REF -e GITHUB_PATH -e GITHUB_ENV -e RUNNER_OS -e RUNNER_TOOL_CACHE -e RUNNER_TEMP -e RUNNER_WORKSPACE -e ACTIONS_RUNTIME_URL -e ACTIONS_RUNTIME_TOKEN -e ACTIONS_CACHE_URL -e GITHUB_ACTIONS=true -e CI=true -v "/var/run/docker.sock":"/var/run/docker.sock" -v "/home/runner/work/_temp/_github_home":"/github/home" -v "/home/runner/work/_temp/_github_workflow":"/github/workflow" -v "/home/runner/work/_temp/_runner_file_commands":"/github/file_commands" -v "/home/runner/work/pivotal-webapp/pivotal-webapp":"/github/workspace" 442333:1d4dbb9d6b7741c98fcec8fea66e769b "src/"

Your environment is not ready yet. Installing modules...

Running ESLint

npm WARN saveError ENOENT: no such file or directory, open '/github/workspace/package.json'
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.348s
found 0 vulnerabilities

sh: ./node_modules/.bin/eslint: not found

main.yaml

  • name: ESLint
    uses: stefanoeb/eslint-action@1.0.2
    with:
    files: src/

@linhnle can you remove the with part to see if it works?