From 31ae13fe282f422b3340cff080b5b9cf3ef9314b Mon Sep 17 00:00:00 2001 From: Liam Date: Tue, 18 Jun 2024 13:46:16 -0400 Subject: [PATCH] Add typos workflow --- .github/workflows/elixir.yml | 8 ++++++++ .typos.toml | 10 ++++++++++ 2 files changed, 18 insertions(+) create mode 100644 .typos.toml diff --git a/.github/workflows/elixir.yml b/.github/workflows/elixir.yml index dfdfab46..95269dbc 100644 --- a/.github/workflows/elixir.yml +++ b/.github/workflows/elixir.yml @@ -27,6 +27,14 @@ jobs: run: | docker compose run app mix sobelow --config docker compose run app mix deps.audit + + typos: + name: 'Check for spelling errors' + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: crate-ci/typos@master + lint-and-test: name: 'JavaScript Linting and Unit Tests' runs-on: ubuntu-latest diff --git a/.typos.toml b/.typos.toml new file mode 100644 index 00000000..898ad2e4 --- /dev/null +++ b/.typos.toml @@ -0,0 +1,10 @@ +[default] +extend-ignore-re = [ + # Ignore development secret key. Production secret key should + # be in environment files and not checked into source control. + ".*secret_key_base.*", + + # Key constraints with encoded names + "fk_rails_[a-f0-9]+" +] +