diff --git a/.github/workflows/pr-check.yaml b/.github/workflows/pr-check.yaml new file mode 100644 index 00000000..6df195b4 --- /dev/null +++ b/.github/workflows/pr-check.yaml @@ -0,0 +1,35 @@ +name: Pull Request Checks + +on: + pull_request: + branches: + - main + workflow_dispatch: + +jobs: + spellcheck: + name: Spellcheck + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4.1.0 + name: Checkout + - id: changed_files + name: Changed Files + uses: tj-actions/changed-files@v45 + with: + files: | + **.mdx + - name: List all changed files + env: + ALL_CHANGED_FILES: ${{ steps.changed_files.outputs.all_changed_files }} + run: | + for file in ${ALL_CHANGED_FILES}; do + echo "$file was changed" + done + - uses: rojopolis/spellcheck-github-actions@0.41.0 + name: Spellcheck + if: ${{ steps.changed_files.outputs.all_changed_files }} + with: + source_files: ${{ steps.changed_files.outputs.all_changed_files }} + task_name: Markdown diff --git a/.wordlist.txt b/.wordlist.txt new file mode 100644 index 00000000..39ba8cf8 --- /dev/null +++ b/.wordlist.txt @@ -0,0 +1,6 @@ +ganymede +UI +performant +releaseSideBar +SDK +MSI \ No newline at end of file diff --git a/README.md b/README.md index f44fbba3..d8505d9b 100644 --- a/README.md +++ b/README.md @@ -142,6 +142,11 @@ popd To add images, drop them into [this GCS bucket](https://console.cloud.google.com/storage/browser/ganymede-bio-website/public;tab=objects?project=ganymede-website-356920&pageState=(%22StorageObjectListTable%22:(%22f%22:%22%255B%255D%22))&prefix=&forceOnObjectsSortingFiltering=false) + +### Spellchecking + +To add new words to the allowed list, update `.wordlist.txt`. + --- ## License diff --git a/core-operators b/core-operators index 5f33d372..ebb33f8f 160000 --- a/core-operators +++ b/core-operators @@ -1 +1 @@ -Subproject commit 5f33d372961fc00eb4a23348d50eb1f33c70427d +Subproject commit ebb33f8fb108f575cd0e49d01b4121b9553d0442 diff --git a/spellcheck.yaml b/spellcheck.yaml new file mode 100644 index 00000000..9e3435eb --- /dev/null +++ b/spellcheck.yaml @@ -0,0 +1,20 @@ +matrix: +- name: Markdown + aspell: + lang: en + dictionary: + wordlists: + - .wordlist.txt + encoding: utf-8 + pipeline: + - pyspelling.filters.markdown: + markdown_extensions: + - pymdownx.superfences + - pyspelling.filters.html: + comments: false + ignores: + - code + - pre + sources: + - '**/*.mdx' + default_encoding: utf-8 \ No newline at end of file