Created
April 1, 2020 11:44
-
-
Save yimajo/e2990e76426539b18567e748d1744cd5 to your computer and use it in GitHub Desktop.
GitHub Actionsでtextlintを実行するだけならこれで良さそう
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
textlint: | |
runs-on: ubuntu-latest # macos-latestにしてもいいけど今回はtextlintなので | |
steps: | |
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | |
- uses: actions/checkout@v2 | |
- name: npm install | |
run: | |
npm install | |
[email protected] | |
power-assert | |
textlint-rule-preset-ja-technical-writing | |
textlint-rule-preset-jtf-style | |
textlint-rule-preset-ja-spacing | |
textlint-rule-spellcheck-tech-word | |
textlint-rule-no-mix-dearu-desumasu | |
textlint-filter-rule-comments | |
textlint-plugin-review | |
textlint-filter-rule-whitelist | |
- name: npx textlint | |
run: npx textlint src/chapters/ # re:viewでsrc/chapters/配下にreファイルがある |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment