From 0d568229bfad5ac944993dfca6e01a554a47bb70 Mon Sep 17 00:00:00 2001 From: BennyDB <74614235+BennyDeBock@users.noreply.github.com> Date: Tue, 10 May 2022 14:27:06 +0200 Subject: [PATCH] Add CF lint, check if docs build on pr (#660) * Add CF lint, check if docs build and do a spellcheck * set the right repository for spellchecking * check only markdown files * remove pipeline filters * Remove spellcheck --- .github/workflows/check.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/check.yml diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml new file mode 100644 index 00000000..48aa47aa --- /dev/null +++ b/.github/workflows/check.yml @@ -0,0 +1,24 @@ +name: Build docs and check cloudformation + +on: + pull_request: + branches: + - main + +jobs: + build: + name: build docs + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v3.0.0 + - name: Install dependencies + run: | + pip install -r requirements.txt + - name: Build documentation + run: | + mkdocs build + - name: Setup cloudformation linter + uses: ScottBrenner/cfn-lint-action@v2.2.1 + - name: Run cloudformation lint + run: cfn-lint -t stack.yml \ No newline at end of file