Skip to content
This repository has been archived by the owner on Jun 14, 2024. It is now read-only.

Commit

Permalink
Add gh actions to do basic pre-commit check
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelaw320 committed Apr 9, 2021
1 parent bb5dace commit b8f3861
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Pre-Commit

on: [push, pull_request]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1
- name: Run pre-commit test
run: |
curl https://pre-commit.com/install-local.py | python3 -
curl -Lo ./terraform-docs https://github.com/terraform-docs/terraform-docs/releases/download/v0.9.1/terraform-docs-v0.9.1-$(uname | tr '[:upper:]' '[:lower:]')-amd64
chmod +x ./terraform-docs
sudo mv ./terraform-docs /usr/bin/terraform-docs
/home/runner/bin/pre-commit --version
terraform-docs --version
/home/runner/bin/pre-commit run -a

0 comments on commit b8f3861

Please sign in to comment.