Skip to content

Latest commit

 

History

History
37 lines (34 loc) · 971 Bytes

README.md

File metadata and controls

37 lines (34 loc) · 971 Bytes

rad-setup-precommit-deps

Gtihub Action to set up dependencies used for precommit checks in pipelines

Inputs

Name Description Default
tflint_version TFLint version to install v0.34.1
terraform_docs_version terrafrom-docs version to install v0.16.0

Example Workflow

name: Static Testing
on: [pull_request]
jobs:
  pre-commit:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v2
    - name: Set up Python 3.8
      uses: actions/setup-python@v1
      with:
        python-version: 3.8
    - uses: cloudreach/rad-setup-precommit-deps@master
      name: Setup precommit dependencies
      with:
        tflint_version: v0.34.1
    - name: Pre-commit
      run: |
        pip install pre-commit
        pre-commit run --all-files

Building

To make updates:

  • Install ncc with npm -i -g install @vercel/ncc
  • ncc build index.js -o dist
  • Commit updated dist/ directory