Skip to content

Commit 8b96bb8

Browse files
committed
chore: CIにtextlintの実行を追加
1 parent 68fd6fd commit 8b96bb8

File tree

2 files changed

+34
-75
lines changed

2 files changed

+34
-75
lines changed

.github/workflows/ci.yml

Lines changed: 0 additions & 70 deletions
This file was deleted.

.github/workflows/deploy.yml

Lines changed: 34 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,15 @@
1-
# Based on ripgrep's release action:
2-
# https://github.com/BurntSushi/ripgrep/blob/master/.github/workflows/release.yml
3-
41
name: CI/CD for Documentation
5-
on: [push, pull_request]
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
workflow_dispatch:
9+
610
permissions:
711
contents: write
12+
813
jobs:
914
build-and-deploy:
1015
name: build-and-deploy
@@ -13,7 +18,7 @@ jobs:
1318
- uses: actions/checkout@v3
1419
- uses: dtolnay/rust-toolchain@master
1520
with:
16-
toolchain: '1.77'
21+
toolchain: "1.77"
1722
- uses: Swatinem/rust-cache@v2
1823
- uses: jdx/mise-action@v2
1924
- run: uv sync --locked
@@ -25,3 +30,27 @@ jobs:
2530
uses: JamesIves/github-pages-deploy-action@v4
2631
with:
2732
folder: dist # The folder the action should deploy.
33+
34+
textlint-md:
35+
runs-on: ubuntu-24.04
36+
steps:
37+
- name: Checkout the repository
38+
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
39+
- name: Setup tools
40+
uses: jdx/mise-action@d6e32c1796099e0f1f3ac741c220a8b7eae9e5dd # v2
41+
- name: Install dependencies
42+
run: bun install --frozen-lockfile
43+
- name: Lint Markdown using textlint
44+
run: bun run --bun textlint-md
45+
46+
textlint-html:
47+
runs-on: ubuntu-24.04
48+
steps:
49+
- name: Checkout the repository
50+
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
51+
- name: Setup tools
52+
uses: jdx/mise-action@d6e32c1796099e0f1f3ac741c220a8b7eae9e5dd # v2
53+
- name: Install dependencies
54+
run: bun install --frozen-lockfile
55+
- name: Lint HTML using textlint
56+
run: bun run --bun textlint-html

0 commit comments

Comments
 (0)