Skip to content

Instantly share code, notes, and snippets.

@yimajo
Created April 1, 2020 11:44
Show Gist options
  • Save yimajo/e2990e76426539b18567e748d1744cd5 to your computer and use it in GitHub Desktop.
Save yimajo/e2990e76426539b18567e748d1744cd5 to your computer and use it in GitHub Desktop.
GitHub Actionsでtextlintを実行するだけならこれで良さそう
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