Skip to content

Commit

Permalink
Merge pull request #320 from moonbitlang/ci-typo
Browse files Browse the repository at this point in the history
ci: typo ignore
  • Loading branch information
bzy-debug authored Nov 12, 2024
2 parents 835a69d + 8d32d88 commit 074aebc
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 19 deletions.
18 changes: 0 additions & 18 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -99,21 +99,3 @@ jobs:
run: |
Get-ChildItem -Path ".\target" -Recurse -Filter "*.wasm" | ForEach-Object { "{0} ({1} bytes)" -f $_.FullName, $_.Length }
Get-ChildItem -Path ".\target" -Recurse -Filter "*.js" | ForEach-Object { "{0} ({1} bytes)" -f $_.FullName, $_.Length }
typo-check:
runs-on: ubuntu-latest
timeout-minutes: 10
env:
FORCE_COLOR: 1
TYPOS_VERSION: v1.19.0
steps:
- name: download typos
run: curl -LsSf https://github.com/crate-ci/typos/releases/download/$TYPOS_VERSION/typos-$TYPOS_VERSION-x86_64-unknown-linux-musl.tar.gz | tar zxf - -C ${CARGO_HOME:-~/.cargo}/bin

- name: Checkout repository
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}

- name: check typos
run: typos
18 changes: 18 additions & 0 deletions .github/workflows/typo.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: check examples

on:
push:
branches:
- main
pull_request:

jobs:
typo-check:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: check typos
uses: crate-ci/[email protected]

2 changes: 1 addition & 1 deletion moonbit-docs/docs/examples/sudoku/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -391,6 +391,6 @@ The purpose of games is to relieve boredom and bring joy. If playing a game beco

Let's play with MoonBit with ease!

Visit MoonBit [Gallery](https://www.moonbitlang.com/gallery/sudoku/) to play with the Sudoku solver writen in MoonBit. Click [this link](https://github.com/myfreess/sudoku) to view the full source code.
Visit MoonBit [Gallery](https://www.moonbitlang.com/gallery/sudoku/) to play with the Sudoku solver written in MoonBit. Click [this link](https://github.com/myfreess/sudoku) to view the full source code.

This tutorial references Norvig's blog: [http://norvig.com/sudoku.html](http://norvig.com/sudoku.html)
5 changes: 5 additions & 0 deletions typos.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[files]
extend-exclude = ["*.excalidraw"]

[default]
extend-ignore-words-re = ["CAF", "ND"]

0 comments on commit 074aebc

Please sign in to comment.