Skip to content

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

Notifications You must be signed in to change notification settings

cloudreach/rad-setup-precommit-deps

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published