-
Notifications
You must be signed in to change notification settings - Fork 6
62 lines (54 loc) · 1.47 KB
/
format.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
name: Build and Format Check
on:
schedule:
- cron: 0 0 * * *
push:
branches:
- master
pull_request:
branches:
- master
workflow_dispatch:
jobs:
textlint:
# https://zenn.dev/miyuush/articles/97b3f2fee0f7c5
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
- name: Install textlint
run: >
npm install --save-dev
textlint
textlint-rule-preset-smarthr
textlint-filter-rule-allowlist
- name: textlint-github-pr-check
uses: tsuyoshicho/action-textlint@v3
with:
github_token: ${{ secrets.github_token }}
reporter: github-pr-check
textlint_flags: "doc/**"
- name: textlint-github-check
uses: tsuyoshicho/action-textlint@v3
with:
github_token: ${{ secrets.github_token }}
reporter: github-check
textlint_flags: "doc/**"
- name: textlint-github-pr-review
uses: tsuyoshicho/action-textlint@v3
with:
github_token: ${{ secrets.github_token }}
reporter: github-pr-review
textlint_flags: "doc/**"
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Rust
uses: crusty-pie/toolchain@v1.0.7
with:
profile: minimal
toolchain: stable
- name: Check rustfmt
run: cargo fmt -- --check