Skip to content

Commit 50a7228

Browse files
committed
ci: #1 lint
1 parent d2772d1 commit 50a7228

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

.github/workflows/ci.yml

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: CI
2+
on:
3+
pull_request:
4+
branches:
5+
- master
6+
7+
jobs:
8+
build:
9+
name: Build
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Setup Node
13+
uses: actions/setup-node@v2
14+
with:
15+
node-version: '14'
16+
17+
- name: Prepare
18+
run: yarn global add lint-md-cli remark-cli remark-preset-lint-recommended fnlint
19+
20+
- name: Checkout
21+
uses: actions/checkout@v2
22+
23+
- name: Get Diff Action
24+
uses: technote-space/[email protected]
25+
with:
26+
PATTERNS: |
27+
source/**/*.md
28+
*.md
29+
30+
- name: Lint
31+
if: env.GIT_DIFF
32+
run: |
33+
remark -f ${{ env.GIT_DIFF }}
34+
lint-md ${{ env.GIT_DIFF }}
35+
fnlint -c .fnlint.json

0 commit comments

Comments
 (0)