From 4592bd433156ff820f3beaa76c1b5cfe3260d23a Mon Sep 17 00:00:00 2001 From: Karl-Johan Grahn Date: Mon, 21 Mar 2022 21:03:39 +0100 Subject: [PATCH 1/2] feat(qa): add qa checks for dockerfile and documentation --- .github/workflows/pull_request.yaml | 17 +++++++++++++++++ .vale.ini | 7 +++++++ 2 files changed, 24 insertions(+) create mode 100644 .vale.ini diff --git a/.github/workflows/pull_request.yaml b/.github/workflows/pull_request.yaml index a349654f..4a011c38 100644 --- a/.github/workflows/pull_request.yaml +++ b/.github/workflows/pull_request.yaml @@ -48,6 +48,23 @@ jobs: cd deployments/kubernetes/chart/reloader helm lint + - name: Dockerfile Lint + uses: hadolint/hadolint-action@v1.6.0 + with: + dockerfile: Dockerfile + failure-threshold: warning + + - name: Link check + uses: gaurav-nelson/github-action-markdown-link-check@v1 + + - name: Spell check + uses: errata-ai/vale-action@v1.5.0 + with: + styles: https://github.com/errata-ai/write-good/releases/latest/download/write-good.zip + files: docs + env: + GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} + - name: Install kubectl run: | curl -LO "https://storage.googleapis.com/kubernetes-release/release/v${KUBERNETES_VERSION}/bin/linux/amd64/kubectl" diff --git a/.vale.ini b/.vale.ini new file mode 100644 index 00000000..eb9db3b0 --- /dev/null +++ b/.vale.ini @@ -0,0 +1,7 @@ +StylesPath = spellingstyles +MinAlertLevel = warning + +# Only check MarkDown files +[*.md] + +BasedOnStyles = Vale From e2b14ab7b5a0c5b1f954997dac40680bf707bfd4 Mon Sep 17 00:00:00 2001 From: Karl-Johan Grahn Date: Mon, 21 Mar 2022 21:32:49 +0100 Subject: [PATCH 2/2] fix(qa): update dockerfile path --- .github/workflows/pull_request.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pull_request.yaml b/.github/workflows/pull_request.yaml index 4a011c38..48c81afa 100644 --- a/.github/workflows/pull_request.yaml +++ b/.github/workflows/pull_request.yaml @@ -51,7 +51,7 @@ jobs: - name: Dockerfile Lint uses: hadolint/hadolint-action@v1.6.0 with: - dockerfile: Dockerfile + dockerfile: ${{env.DOCKER_FILE_PATH}} failure-threshold: warning - name: Link check