Skip to content

Setup textlint

Setup textlint #7

Workflow file for this run

name: Lint
on:
pull_request:
jobs:
textlint:
runs-on: ubuntu-latest
steps:
- name: Checkout your repository using git
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 18
cache: "npm"
cache-dependency-path: package-lock.json
- name: Install
run: |
npm install
- name: Setup reviewdog
uses: reviewdog/action-setup@v1
with:
reviewdog_version: latest
- name: Add GitHub review
env:
REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
reviewdog -conf=lint/reviewdog.yml -reporter=github-pr-check