From c9583eaa53abff56e1044b189a030da8a3457747 Mon Sep 17 00:00:00 2001 From: Dimple Kuriakose Date: Thu, 12 Sep 2024 12:54:43 +0530 Subject: [PATCH 1/2] Add a GitHub action for periodically running vale and storing the results. --- .github/workflows/periodic-style-checks.yml | 27 +++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/periodic-style-checks.yml diff --git a/.github/workflows/periodic-style-checks.yml b/.github/workflows/periodic-style-checks.yml new file mode 100644 index 0000000..04f412a --- /dev/null +++ b/.github/workflows/periodic-style-checks.yml @@ -0,0 +1,27 @@ +name: Periodic Style Checks + +on: + schedule: + - cron: "0 1 * * 4" # Runs at 01:00 AM on every Wednesday + +jobs: + vale: + name: Style checker + runs-on: ubuntu-22.04 + defaults: + run: + shell: bash + working-directory: . + steps: + - uses: actions/checkout@v4 + - name: Run vale on .rst files + run: | + make vale TARGET=*.rst > vale_results.txt + sed -e 's/\x1b\[[0-9;]*m//g' vale_results.txt > vale_results_clean.txt + + - name: Upload artifact + uses: actions/upload-artifact@v4 + with: + name: vale-results + path: vale_results_clean.txt + retention-days: 10 From 88f7bc303c9aa98d9aa8ea8f3b76c51b53498879 Mon Sep 17 00:00:00 2001 From: Dimple Kuriakose <123362247+k-dimple@users.noreply.github.com> Date: Fri, 13 Sep 2024 10:14:57 +0530 Subject: [PATCH 2/2] Include markdown files for testing. Co-authored-by: Michael Park <100246223+SecondSkoll@users.noreply.github.com> --- .github/workflows/periodic-style-checks.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/periodic-style-checks.yml b/.github/workflows/periodic-style-checks.yml index 04f412a..673cd61 100644 --- a/.github/workflows/periodic-style-checks.yml +++ b/.github/workflows/periodic-style-checks.yml @@ -14,9 +14,9 @@ jobs: working-directory: . steps: - uses: actions/checkout@v4 - - name: Run vale on .rst files + - name: Run vale on RST and MD files run: | - make vale TARGET=*.rst > vale_results.txt + make vale TARGET="*.rst *.md" > vale_results.txt sed -e 's/\x1b\[[0-9;]*m//g' vale_results.txt > vale_results_clean.txt - name: Upload artifact