From da530073faac458f893481b212617db7059e7c19 Mon Sep 17 00:00:00 2001 From: 简律纯 Date: Fri, 30 Jun 2023 21:12:54 +0800 Subject: Create md-lint.yml --- .github/workflows/md-lint.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/md-lint.yml (limited to '.github') diff --git a/.github/workflows/md-lint.yml b/.github/workflows/md-lint.yml new file mode 100644 index 0000000..f9ed5d0 --- /dev/null +++ b/.github/workflows/md-lint.yml @@ -0,0 +1,32 @@ +name: Markdown Lint +on: + push: + branches: + - main + pull_request: + branches: + - main + +jobs: + ci: + name: Run Linter + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [16.x] + + steps: + - name: Checkout Source Files + uses: actions/checkout@v2 + + - name: Use Node.js v${{ matrix.node-version }} + uses: actions/setup-node@v2 + with: + node-version: ${{ matrix.node-version }} + + - name: Install Dependencies + run: npm ci + + - name: Lint Source Files + run: npm run lint -- cgit v1.2.3-70-g09d2