From ecc8f4cbe139bba57aa36412a0c48f8823830476 Mon Sep 17 00:00:00 2001 From: Franck Nijhof Date: Sat, 4 Jul 2020 21:56:01 +0200 Subject: [PATCH] GitHub Actions: Add codespell problem matcher --- .github/workflows/ci.yaml | 3 +++ .github/workflows/matchers/codespell.json | 16 ++++++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 .github/workflows/matchers/codespell.json diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index eb2fb5039b7..8ca0ab18053 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -195,6 +195,9 @@ jobs: run: | echo "Failed to restore Python virtual environment from cache" exit 1 + - name: Register codespell problem matcher + run: | + echo "::add-matcher::.github/workflows/matchers/codespell.json" - name: Run codespell run: | . venv/bin/activate diff --git a/.github/workflows/matchers/codespell.json b/.github/workflows/matchers/codespell.json new file mode 100644 index 00000000000..cfa66d31392 --- /dev/null +++ b/.github/workflows/matchers/codespell.json @@ -0,0 +1,16 @@ +{ + "problemMatcher": [ + { + "owner": "codespell", + "severity": "warning", + "pattern": [ + { + "regexp": "^(.+):(\\d+):\\s(.+)$", + "file": 1, + "line": 2, + "message": 3 + } + ] + } + ] +}