Closed ValentinVignal closed 2 years ago
@ValentinVignal,
Thank you for the detailed report.
One thing:
defaults.run.working-directory
only apply to the run
step, see: Setting default values for jobs - GitHub Docs.Please try either of the following:
name: cSpell
on: [pull_request]
jobs:
cspell:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: cspell
uses: streetsidesoftware/cspell-action@v3
with:
files: "packages/**"
config: "packages/cspell.json"
name: cSpell
on: [pull_request]
jobs:
cspell:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: cspell
uses: streetsidesoftware/cspell-action@v3
with:
root: "packages"
I have a project like this
With
packages/cspell.json
:And
.github/workflows/cspell_workflow.yaml
:When the job
cspell
runs, it doesn't ignore the.hidden
folder as specified in thepackages/cspell.json
.You can check the run https://github.com/ValentinVignal/examples/runs/6671863347?check_suite_focus=true :
badword
inpackages/text.txt
is linted (as it should be)ignoredword
inpackages/text.txt
is not linted (as it should be)badwordinignoredfile
inpackages/.hidden/text.txt
is linted (and it shouldn't )You can also check the PR https://github.com/ValentinVignal/examples/pull/1 where I made several tries and its branch: https://github.com/ValentinVignal/examples/tree/cspell/nested-configuration