From 995f176e0199c0832e3d69cc9ab8ed3081798634 Mon Sep 17 00:00:00 2001 From: Todor Andonov <45210624+todor-a@users.noreply.github.com> Date: Tue, 20 Aug 2024 00:10:20 +0300 Subject: [PATCH] chore: add typos check (#29) --- .github/workflows/lint.yml | 11 ++++++++++- tests/cli_gitignore.rs | 2 +- ...ore__gitignored_files_successfully_ignored-2.snap} | 0 ...gnore__gitignored_files_successfully_ignored.snap} | 0 4 files changed, 11 insertions(+), 2 deletions(-) rename tests/snapshots/{cli_gitignore__gitignored_files_successfuly_ignored-2.snap => cli_gitignore__gitignored_files_successfully_ignored-2.snap} (100%) rename tests/snapshots/{cli_gitignore__gitignored_files_successfuly_ignored.snap => cli_gitignore__gitignored_files_successfully_ignored.snap} (100%) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 627554f..4692663 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -7,6 +7,15 @@ on: name: Check and Lint jobs: + typos: + name: Spell Check + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: crate-ci/typos@v1.23.6 + with: + files: . + check: name: Check runs-on: ubuntu-latest @@ -34,4 +43,4 @@ jobs: - uses: giraffate/clippy-action@v1 with: reporter: 'github-pr-review' - github_token: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file + github_token: ${{ secrets.GITHUB_TOKEN }} diff --git a/tests/cli_gitignore.rs b/tests/cli_gitignore.rs index 69a2b14..1b9bb63 100644 --- a/tests/cli_gitignore.rs +++ b/tests/cli_gitignore.rs @@ -24,7 +24,7 @@ pub fn setup_gitnore_test_dir() -> (TempDir, PathBuf, PathBuf) { } #[test] -fn test_gitignored_files_successfuly_ignored() -> Result<(), Box> { +fn test_gitignored_files_successfully_ignored() -> Result<(), Box> { let (temp_dir, sample_path, ignored_path) = setup_gitnore_test_dir(); let mut cmd = common::run_cli("**/*.json", &["--write"], temp_dir.path()); diff --git a/tests/snapshots/cli_gitignore__gitignored_files_successfuly_ignored-2.snap b/tests/snapshots/cli_gitignore__gitignored_files_successfully_ignored-2.snap similarity index 100% rename from tests/snapshots/cli_gitignore__gitignored_files_successfuly_ignored-2.snap rename to tests/snapshots/cli_gitignore__gitignored_files_successfully_ignored-2.snap diff --git a/tests/snapshots/cli_gitignore__gitignored_files_successfuly_ignored.snap b/tests/snapshots/cli_gitignore__gitignored_files_successfully_ignored.snap similarity index 100% rename from tests/snapshots/cli_gitignore__gitignored_files_successfuly_ignored.snap rename to tests/snapshots/cli_gitignore__gitignored_files_successfully_ignored.snap