From 4af28f358fcf926464a28a66bd16fbc7a650ec14 Mon Sep 17 00:00:00 2001 From: Rail Aliiev Date: Tue, 28 Mar 2023 20:23:34 -0400 Subject: [PATCH] Add template liter action --- .github/workflows/ci.yaml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index bbb41a3e..76f9f6fd 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -146,3 +146,24 @@ jobs: - name: Run E2E Test run: make test/e2e/rotate + + lint-templates: + name: Lint release templates + runs-on: ubuntu-latest + steps: + - name: Checkout sources + uses: actions/checkout@v2 + with: + ref: ${{github.event.pull_request.head.ref}} + repository: ${{github.event.pull_request.head.repo.full_name}} + + - name: Setup Go + uses: actions/setup-go@v2 + with: + go-version: 1.18 + + - name: generate configs + run: go run build/build.go generate + + - name: check diff + run: git diff --no-ext-diff --exit-code