From 8c71abb9e33378ff9893a0ae0b8da043e0560332 Mon Sep 17 00:00:00 2001 From: KVTTS <150597636+KVTTS@users.noreply.github.com> Date: Thu, 25 Jan 2024 11:14:41 +0100 Subject: [PATCH] Update ci.yml --- .github/workflows/ci.yml | 26 +++++++++----------------- 1 file changed, 9 insertions(+), 17 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index dcde3ac..a15f1a7 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -17,24 +17,16 @@ on: jobs: # This workflow contains a single job called "build" build: - # The type of runner that the job will run on runs-on: ubuntu-latest - - # Steps represent a sequence of tasks that will be executed as part of the job steps: - # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - # Runs a single command using the runners shell - - name: Run a one-line script - run: echo Hello, world! + - name: Run markdown lint + run: | + npm install remark-cli remark-preset-lint-consistent vfile-reporter-json + npx remark . --use remark-preset-lint-consistent --report vfile-reporter-json 2> remark-lint-report.json - # Runs a set of commands using the runners shell - - name: Run a multi-line script - run: | - echo Add other actions to build, - echo test, and deploy your project. - - name: Run markdown lint - run: | - npm install remark-cli remark-preset-lint-consistent - npx remark . --use remark-preset-lint-consistent --frail + - uses: actions/upload-artifact@v3 + with: + name: remark-lint-report + path: remark-lint-report.json