Skip to content

test: Utilize reviewdog #34 #36

test: Utilize reviewdog #34

test: Utilize reviewdog #34 #36

Workflow file for this run

name: "Spell"
on:
push:
pull_request:
workflow_dispatch:
jobs:
spell:
strategy:
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Inistall Node.js
uses: actions/setup-node@v4
with:
node-version: 18.x
- uses: reviewdog/action-setup@v1
- run: yarn install
- name: Spell check
if: ${{ github.event_name == 'pull_request' }}
run: yarn cspell . | reviewdog -efm="%f:%l:%c - %m" -reporter=github-pr-review -filter-mode=nofilter -fail-on-error=true
env:
REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Spell check
if: ${{ github.event_name != 'pull_request' }}
run: yarn cspell .