[Actions] Add spell checker
authorgichan2-jang <gichan2.jang@samsung.com>
Mon, 1 Jul 2024 05:20:16 +0000 (14:20 +0900)
committerjaeyun-jung <39614140+jaeyun-jung@users.noreply.github.com>
Tue, 2 Jul 2024 04:40:01 +0000 (13:40 +0900)
Add spell checker github action.

Signed-off-by: gichan2-jang <gichan2.jang@samsung.com>
.github/workflows/_typos.toml [new file with mode: 0644]
.github/workflows/spell-checker.yml [new file with mode: 0644]

diff --git a/.github/workflows/_typos.toml b/.github/workflows/_typos.toml
new file mode 100644 (file)
index 0000000..4cbdbc8
--- /dev/null
@@ -0,0 +1,4 @@
+[files]
+extend-exclude = []
+
+[default.extend-words]
diff --git a/.github/workflows/spell-checker.yml b/.github/workflows/spell-checker.yml
new file mode 100644 (file)
index 0000000..ffa0b91
--- /dev/null
@@ -0,0 +1,17 @@
+name: Spell Check
+
+on:
+  pull_request:
+    branches: [ main ]
+
+jobs:
+  typos-check:
+    name: Spell Check with Typos
+    runs-on: ubuntu-latest
+    steps:
+      - name: Checkout Actions Repository
+        uses: actions/checkout@v4
+      - name: Check spelling
+        uses: crate-ci/typos@master
+        with:
+          config: ./.github/workflows/_typos.toml