Skip to content

Add textlint to enforce writing guide [i18nIgnore] #1

Add textlint to enforce writing guide [i18nIgnore]

Add textlint to enforce writing guide [i18nIgnore] #1

Workflow file for this run

name: Lint Japanese Documentation
on:
push:
branches: [main]
paths:
- 'src/content/docs/ja/**'
- '.textlintrc.ja.json'
pull_request:
paths:
- 'src/content/docs/ja/**'
- '.textlintrc.ja.json'
# Automatically cancel in-progress actions on the same branch
concurrency:
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request_target' && github.head_ref || github.ref }}
cancel-in-progress: true
jobs:
textlint:
name: Run textlint on Japanese documentation
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Install Tools & Dependencies
uses: ./.github/actions/install
with:
node-version: 20
- name: Run textlint
run: |
echo "::group::Running textlint on Japanese documentation"
pnpm run lint:ja
echo "::endgroup::"
continue-on-error: true
id: textlint
- name: Report textlint results
if: always() && steps.textlint.outcome == 'failure'
run: |
echo "::error::textlint found issues in Japanese documentation. Please run 'pnpm run lint:ja' locally to see details."
exit 1