From 022ade07b30aaa5cc93afb31a2da812a0ba47928 Mon Sep 17 00:00:00 2001 From: finn Date: Tue, 31 Oct 2023 12:03:22 -0700 Subject: [PATCH] move lint actions to their own job and add more checks --- .github/workflows/ci-test.yml | 23 ++++++++++++++++++++--- 1 file changed, 20 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci-test.yml b/.github/workflows/ci-test.yml index 31e23ac..72fd38f 100644 --- a/.github/workflows/ci-test.yml +++ b/.github/workflows/ci-test.yml @@ -21,9 +21,6 @@ jobs: - name: Run tests run: npm run test - - name: Run linter - run: npm run lint - - name: Upload test coverage to Codecov uses: codecov/codecov-action@v3 env: @@ -35,3 +32,23 @@ jobs: - name: Check out repository uses: actions/checkout@v4 - run: docker build . + + lint-markdown: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + + - uses: DavidAnson/markdownlint-cli2-action@v11 + with: + globs: '*.md' + + - name: Set up Node.js + uses: actions/setup-node@v3 + with: + node-version: 18 + + - name: Run linter + run: npm ci + + - name: Run linter + run: npm run lint