Skip to content

Commit

Permalink
ci: #1 lint
Browse files Browse the repository at this point in the history
  • Loading branch information
sinkcup committed Jan 2, 2022
1 parent d2772d1 commit 50a7228
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: CI
on:
pull_request:
branches:
- master

jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Setup Node
uses: actions/setup-node@v2
with:
node-version: '14'

- name: Prepare
run: yarn global add lint-md-cli remark-cli remark-preset-lint-recommended fnlint

- name: Checkout
uses: actions/checkout@v2

- name: Get Diff Action
uses: technote-space/[email protected]
with:
PATTERNS: |
source/**/*.md
*.md
- name: Lint
if: env.GIT_DIFF
run: |
remark -f ${{ env.GIT_DIFF }}
lint-md ${{ env.GIT_DIFF }}
fnlint -c .fnlint.json

0 comments on commit 50a7228

Please sign in to comment.