Skip to content

Support scratch disks for google/compute #86

Support scratch disks for google/compute

Support scratch disks for google/compute #86

Workflow file for this run

---
name: pre-commit
on:
pull_request:
push:
branches: [main, master]
permissions: read-all
jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Load envrc
uses: HatsuneMiku3939/direnv-action@v1
- name: Setup Terraform
uses: hashicorp/setup-terraform@v2
with:
cli_config_credentials_token: "${{ secrets.TF_CLOUD_API_TOKEN }}"
terraform_version: "~> 1.5.0"
- name: Setup Terraform plugin cache
run: |
echo -e "\nplugin_cache_dir=\"\$HOME/.terraform.d/plugin-cache\"" >> ~/.terraformrc
mkdir -p ~/.terraform.d/plugin-cache
- name: Cache Terraform plugins
uses: actions/cache@v3
with:
path: ~/.terraform.d/plugin-cache
key: "${{ runner.os }}-terraform-${{ hashFiles('**/.terraform.lock.hcl') }}"
- name: Setup pre-commit
run: python -m pip install pre-commit
- name: Install project dependencies
run: make install
- name: Run pre-commit checks
uses: pre-commit/action@v3.0.0