Skip to content

ci: Add github actions for validation and release #1

ci: Add github actions for validation and release

ci: Add github actions for validation and release #1

Workflow file for this run

name: pre-commit
on:
push:
branches: ["*"]
jobs:
pre-commit:
permissions: read-all
runs-on: ubuntu-latest
container:
image: ghcr.io/antonbabenko/pre-commit-terraform:v1.86.0
steps:
- name: Install job dependencies
run: apk add tar git
- uses: actions/cache@v3
with:
path: ~/.cache
key: pre-commit
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Ensure cache directories
run: |
mkdir -p ~/.cache/pip
mkdir -p ~/.cache/pre-commit
- name: Run pre-commit-hooks
run: |
git config --global --add safe.directory $PWD
pre-commit run --all-files --color=always --show-diff-on-failure