Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: add reviewdog checks of textlint #53

Merged
merged 8 commits into from
Jul 19, 2024
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 41 additions & 0 deletions .github/workflows/textlint-reviewdog.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: reviewdog
on: [pull_request]
jobs:
textlint:
name: textlint
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: write
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: true
- uses: pnpm/action-setup@v4
name: Install pnpm
with:
run_install: true
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'pnpm'
- name: textlint-github-pr-check
uses: tsuyoshicho/action-textlint@v3
with:
github_token: ${{ secrets.github_token }}
reporter: github-pr-check
textlint_flags: "*/*.md"
- name: textlint-github-check
uses: tsuyoshicho/action-textlint@v3
with:
github_token: ${{ secrets.github_token }}
reporter: github-check
textlint_flags: "*/*.md"
- name: textlint-github-pr-review
uses: tsuyoshicho/action-textlint@v3
with:
github_token: ${{ secrets.github_token }}
reporter: github-pr-review
textlint_flags: "*/*.md"
22 changes: 22 additions & 0 deletions .github/workflows/textlint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: textlint
on: [push]
jobs:
textlint:
name: textlint
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: true
- uses: pnpm/action-setup@v4
name: Install pnpm
with:
run_install: true
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'pnpm'
- name: Run lint
run: pnpm lint
3 changes: 2 additions & 1 deletion object-storage/01-what-is-object-storage.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

## 自動的なレプリケーション

非ユーザー依存データは、自動的に選択された複数箇所のObject-Storageコンポーネントへ保管されます
非ユーザー依存データは、自動的に選択された複数箇所のObject-storageコンポーネントへ保管されます

Check failure on line 12 in object-storage/01-what-is-object-storage.md

View workflow job for this annotation

GitHub Actions / textlint

[textlint] reported by reviewdog 🐶 Object-storageコンポーネント => Object-Storageコンポーネント (prh) Raw Output: /home/runner/work/Specifications/Specifications/object-storage/01-what-is-object-storage.md:12:27: error: Object-storageコンポーネント => Object-Storageコンポーネント (prh) (eslint.rules.prh)

Check failure on line 12 in object-storage/01-what-is-object-storage.md

View workflow job for this annotation

GitHub Actions / textlint

[textlint] reported by reviewdog 🐶 Object-storageコンポーネント => Object-Storageコンポーネント (prh) Raw Output: /home/runner/work/Specifications/Specifications/object-storage/01-what-is-object-storage.md:12:27: error: Object-storageコンポーネント => Object-Storageコンポーネント (prh) (eslint.rules.prh)
AsPulse marked this conversation as resolved.
Show resolved Hide resolved
AsPulse marked this conversation as resolved.
Show resolved Hide resolved
データを保管しているBloomが何かしらの理由で停止した場合、Suteraネットワークは同じデータを持っている他のBloomから別のBloomへデータをコピーします。

このように、Suteraネットワークではデータが常に一定数の複製を保つように運用されています。
Expand All @@ -21,3 +21,4 @@
自動的なレプリケーションでのデータロストのリスクに備え、非ユーザー依存のデータはBloomを指定してコピーすることもできます。
<!-- text-lint-enable -->
例えば、思い出深いワールドは自分でホストするBloomでも保管しておくことができます。

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,6 @@
"textlint-rule-period-in-list-item": "^1.0.1",
"textlint-rule-preset-ja-technical-writing": "^10.0.1",
"textlint-rule-prh": "^6.0.0"
}
},
"packageManager": "[email protected]+sha1.8c155dc114e1689d18937974f6571e0ceee66f1d"
}
Loading