diff --git a/.github/workflows/testing.yml b/.github/workflows/testing.yml index d1297d1..422339a 100644 --- a/.github/workflows/testing.yml +++ b/.github/workflows/testing.yml @@ -17,7 +17,7 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v1 + uses: actions/checkout@v2 - name: Set up Python uses: actions/setup-python@v2 @@ -41,12 +41,24 @@ jobs: name: Test run action runs-on: ubuntu-latest steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v2 - uses: ./ with: path: test/testdata only_warn: 1 + codespell: + name: Check for spelling errors + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: ./ + with: + check_filenames: true + check_hidden: true + # When using this Action in other repos, the --skip option below can be removed + skip: ./.git,./codespell-problem-matcher/test,./test + diagnose_bats: name: Diagnose bats runs-on: ubuntu-latest diff --git a/action.yml b/action.yml index dad0d7c..6355bc1 100644 --- a/action.yml +++ b/action.yml @@ -4,27 +4,27 @@ description: 'Codespell with annotations for Pull Request' inputs: check_filenames: description: 'If set, check file names as well' - requred: false + required: false default: '' check_hidden: description: 'If set, check hidden files (those starting with ".") as well' - requred: false + required: false default: '' exclude_file: description: 'File with lines that should not be checked for spelling mistakes' - requred: false + required: false default: '' skip: description: 'Comma-separated list of files to skip (it accepts globs as well)' - requred: false + required: false default: '' path: description: 'Path to run codespell in' - requred: false + required: false default: '' only_warn: description: 'If set, only warn, never error' - requred: false + required: false default: '' runs: using: 'docker'