Skip to content

Build and Format Check #699

Build and Format Check

Build and Format Check #699

Workflow file for this run

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