Update check action (#1189)

This commit is contained in:
Semyon Bezrukov
2023-02-02 11:06:48 +03:00
committed by GitHub
parent 0ef46d7f81
commit a9f9e1fbe7
+7 -10
View File
@@ -1,27 +1,24 @@
name: check name: Check
on: on:
workflow_dispatch: workflow_dispatch:
push: push:
paths: paths:
- 'CHANGELOG.md' - 'CHANGELOG.md'
- '.aspell.*.pws' - '.aspell.*.pws'
jobs: jobs:
markdownlint: markdownlint:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
- name: Use Node.js 12 - uses: DavidAnson/markdownlint-cli2-action@v9
uses: actions/setup-node@v1
with: with:
node-version: 12 globs: 'CHANGELOG.md'
- name: Run markdownlint linter
run: |
npm install -g markdownlint-cli
markdownlint CHANGELOG.md
spellchecker: spellchecker:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
- name: Setup aspell - name: Setup aspell
run: sudo apt-get -y update && sudo apt-get -y install aspell aspell-en run: sudo apt-get -y update && sudo apt-get -y install aspell aspell-en
- name: Run spellchecker - name: Run spellchecker