diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index 376604b..a7fc9ed 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -16,24 +16,9 @@ jobs: with: python-version: 3.9 - uses: pre-commit/action@v3.0.0 - jinja-lint: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - name: Set up Python - uses: actions/setup-python@v4 - with: - python-version: 3.9 - - name: Install jinja libraries - run: | - python -m pip install --upgrade jinja2==3.0.1 - - name: Install jinja linter tool - run: git clone --single-branch https://github.com/drm/jinja2-lint.git /tmp/jinja2-lint && pushd /tmp/jinja2-lint && git checkout 75dcd5a - - name: Execute jinja linter - run: find . -type f -name "*.j2" -exec /tmp/jinja2-lint/j2lint.py '{}' + deploy-agoradev-common: if: github.ref == 'refs/heads/main' - needs: [pre-commit, jinja-lint] + needs: [pre-commit] uses: "./.github/workflows/aws-deploy.yaml" with: role-to-assume: "arn:aws:iam::607346494281:role/sagebase-github-oidc-agora-infra-deploy" diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index c1885ea..8c30c99 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -22,3 +22,8 @@ repos: hooks: - id: check-github-workflows - id: check-github-actions +- repo: https://github.com/aristanetworks/j2lint.git + rev: v1.1.0 + hooks: + - id: j2lint +# args: [--ignore, S3, V1, --]