From 50f533f254b3267d942e5ebaee80b067e48f1989 Mon Sep 17 00:00:00 2001 From: Guillaume Raffin Date: Thu, 18 Jul 2024 15:04:23 +0200 Subject: [PATCH] ci: Spell checking with cspell --- .cspell/cspell.json | 19 +++++++++++++++++++ .github/workflows/check.yml | 17 +++++++++++++++++ 2 files changed, 36 insertions(+) create mode 100644 .cspell/cspell.json create mode 100644 .github/workflows/check.yml diff --git a/.cspell/cspell.json b/.cspell/cspell.json new file mode 100644 index 0000000..c9ed263 --- /dev/null +++ b/.cspell/cspell.json @@ -0,0 +1,19 @@ +{ + "version": "0.2", + "language": "en", + "words": [ + "alumet", + "mdbook", + "github", + "rustc", + "toolchain", + "runnable", + "RAPL", + "NVIDIA", + "perf", + "perf-events", + "powercap", + "sysfs", + "jetson", + ] +} \ No newline at end of file diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml new file mode 100644 index 0000000..8eeff02 --- /dev/null +++ b/.github/workflows/check.yml @@ -0,0 +1,17 @@ +name: Check +on: [push] + +jobs: + lint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + - name: Spell check + uses: streetsidesoftware/cspell-action@v6 + with: + root: src + incremental_files_only: false + config: .cspell/cspell.json + files: "**/*.md" \ No newline at end of file