Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Markdown uses trailing spaces for line breaks.
*.md whitespace=-blank-at-eol
44 changes: 44 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
version: 2

updates:
- package-ecosystem: github-actions
directory: /
schedule:
interval: weekly
day: monday
time: "09:00"
timezone: America/New_York
cooldown:
default-days: 7
groups:
github-actions:
patterns:
- "*"

- package-ecosystem: pre-commit
directory: /
schedule:
interval: weekly
day: monday
time: "09:00"
timezone: America/New_York
cooldown:
default-days: 7
groups:
hooks:
patterns:
- "*"

- package-ecosystem: terraform
directory: /
schedule:
interval: weekly
day: monday
time: "09:00"
timezone: America/New_York
cooldown:
default-days: 7
groups:
terraform:
patterns:
- "*"
91 changes: 91 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
name: ci

on:
push:
branches: [main]
pull_request:

permissions:
contents: read

concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true

jobs:
terraform:
name: fmt, validate, tflint, test
runs-on: ubuntu-latest

steps:
- name: Check out the repository
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false

- name: Check generated Terraform docs
uses: terraform-docs/gh-actions@6de6da0cefcc6b4b7a5cbea4d79d97060733093c # v1.4.1
with:
config-file: .terraform-docs.yml
fail-on-diff: "true"
output-format: ""
output-method: ""
working-dir: .

- name: Set up Terraform
uses: hashicorp/setup-terraform@dfe3c3f87815947d99a8997f908cb6525fc44e9e # v4.0.1
with:
terraform_version: 1.16.1
terraform_wrapper: false

- name: Run pre-commit hooks
uses: j178/prek-action@4e14d07f9231acabce116ccfca13b13dd9755ece # v3.0.0
env:
SKIP: terraform_docs

- name: Set up tflint
uses: terraform-linters/setup-tflint@1cf010d3c7aef302051ccdb68c14c5dc2efa34ef # v6.3.1
with:
tflint_version: v0.64.0

- name: Create the provider plugin cache
run: |
set -euo pipefail
mkdir -p "${RUNNER_TEMP}/terraform-plugin-cache"
echo "TF_PLUGIN_CACHE_DIR=${RUNNER_TEMP}/terraform-plugin-cache" >> "${GITHUB_ENV}"

- name: Check formatting
run: terraform fmt -recursive -check -diff

- name: Initialize
run: terraform init -backend=false -input=false -no-color -lockfile=readonly

- name: Validate
run: terraform validate -no-color

- name: Lint
run: |
set -euo pipefail
tflint --init
tflint --recursive

- name: Test
run: terraform test -no-color

- name: Test the minimum Databricks provider
run: |
set -euo pipefail
cp .terraform.lock.hcl "${RUNNER_TEMP}/provider.lock.hcl"
trap 'mv "${RUNNER_TEMP}/provider.lock.hcl" .terraform.lock.hcl; rm -f minimum_override.tf' EXIT
cat > minimum_override.tf <<'EOF'
terraform {
required_providers {
databricks = {
source = "databricks/databricks"
version = "= 1.128.0"
}
}
}
EOF
terraform init -backend=false -input=false -no-color -upgrade
terraform test -no-color
11 changes: 11 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
.terraform/
.terraform.lock.hcl
!/.terraform.lock.hcl
*.tfstate
*.tfstate.*
crash.log
override.tf
override.tf.json
*_override.tf
*_override.tf.json
.terraform.tfstate.lock.info
8 changes: 8 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
repos:
- repo: https://github.com/antonbabenko/pre-commit-terraform
rev: v1.109.1
hooks:
- id: terraform_fmt
- id: terraform_docs
args:
- --args=--config=.terraform-docs.yml
15 changes: 15 additions & 0 deletions .terraform-docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
formatter: markdown document

sections:
hide:
- modules

output:
file: README.md
mode: inject

settings:
anchor: false
hide-empty: true
html: false
lockfile: false
17 changes: 17 additions & 0 deletions .terraform.lock.hcl

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions .tflint.hcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
plugin "terraform" {
enabled = true
preset = "recommended"
}
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Changelog

## 0.1.0 - 2026-09-07

- Extract the `warehouse` resource module from `536tech/workspace/databricks` version 0.1.1.
- Preserve its inputs, outputs, resource addresses, and provider requirements.
- Add independent Registry releases and CI checks.
Loading