Skip to content

CORE-516 add netbox/device model #129

CORE-516 add netbox/device model

CORE-516 add netbox/device model #129

Workflow file for this run

---
name: pre-commit
on:
pull_request:
push:
branches: [main, master]
permissions:
actions: none
checks: none
contents: read
deployments: none
discussions: none
id-token: none
issues: none
packages: none
pages: none
pull-requests: none
repository-projects: none
security-events: none
statuses: none
jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
# https://github.com/actions/checkout/releases
uses: actions/checkout@v4
- name: Load envrc
# https://github.com/HatsuneMiku3939/direnv-action/releases
uses: HatsuneMiku3939/direnv-action@v1
- name: Setup Terraform
# https://github.com/hashicorp/setup-terraform/releases
uses: hashicorp/setup-terraform@v3
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
# https://github.com/actions/cache/releases
uses: actions/cache@v4
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
# https://github.com/pre-commit/action/releases
uses: pre-commit/action@v3.0.1