forked from azl397985856/leetcode
-
Notifications
You must be signed in to change notification settings - Fork 0
28 lines (26 loc) · 739 Bytes
/
ci.yml
File metadata and controls
28 lines (26 loc) · 739 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
name: Continuous Integration
on:
pull_request:
branches: [master]
jobs:
markdown-lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: "16"
- name: Install packages
run: sudo gem install mdl
- name: Get file changes
id: get_file_changes
uses: trilom/file-changes-action@v1.2.3
with:
output: " "
- name: Echo file changes
run: |
echo Changed files: ${{ steps.get_file_changes.outputs.files }}
- name: Lint markdown files
run: mdl ${{ steps.get_file_changes.outputs.files}}
- run: npm install
- run: node .github/check-format.js