diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml
index 1018de58..80bf3eb2 100644
--- a/.github/workflows/pre-commit.yml
+++ b/.github/workflows/pre-commit.yml
@@ -44,6 +44,11 @@ jobs:
env:
# https://github.com/terraform-linters/tflint/blob/master/docs/user-guide/plugins.md#avoiding-rate-limiting
GITHUB_TOKEN: ${{ github.token }}
+ - uses: actions/setup-go@v5
+ with:
+ go-version: '1.23'
+ check-latest: true
+ - run: go install github.com/terraform-docs/terraform-docs@latest
- uses: pre-commit/action@v3.0.1
with:
extra_args: --show-diff-on-failure --all-files
diff --git a/test/cloud-build/pr-validation.yaml b/test/cloud-build/pr-validation.yaml
deleted file mode 100644
index aa9ee236..00000000
--- a/test/cloud-build/pr-validation.yaml
+++ /dev/null
@@ -1,13 +0,0 @@
----
-
-steps:
-- id: pre-commit
- name: us-central1-docker.pkg.dev/$PROJECT_ID/hpc-toolkit-repo/hpc-toolkit-builder
- entrypoint: /bin/bash
- args:
- - -c
- - |
- set -e
- git init --quiet .
- git add .
- pre-commit run --all-files
diff --git a/test/cloud-build/provision/README_TF.md b/test/cloud-build/provision/README_TF.md
deleted file mode 100644
index 6095ff52..00000000
--- a/test/cloud-build/provision/README_TF.md
+++ /dev/null
@@ -1,38 +0,0 @@
-# provision
-
-
-## Requirements
-
-| Name | Version |
-|------|---------|
-| [terraform](#requirement\_terraform) | >= 0.13 |
-| [google](#requirement\_google) | ~> 4.84.0 |
-
-## Providers
-
-| Name | Version |
-|------|---------|
-| [google](#provider\_google) | ~> 4.84.0 |
-
-## Modules
-
-No modules.
-
-## Resources
-
-| Name | Type |
-|------|------|
-| [google_cloudbuild_trigger.slurm_pr_validation](https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/cloudbuild_trigger) | resource |
-
-## Inputs
-
-| Name | Description | Type | Default | Required |
-|------|-------------|------|---------|:--------:|
-| [project\_id](#input\_project\_id) | GCP project ID | `string` | n/a | yes |
-| [region](#input\_region) | GCP region | `string` | `"us-central1"` | no |
-| [zone](#input\_zone) | GCP zone | `string` | `"us-central1-c"` | no |
-
-## Outputs
-
-No outputs.
-
diff --git a/test/cloud-build/provision/main.tf b/test/cloud-build/provision/main.tf
deleted file mode 100644
index 4e41eb91..00000000
--- a/test/cloud-build/provision/main.tf
+++ /dev/null
@@ -1,24 +0,0 @@
-# Copyright 2023 Google LLC
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-terraform {
- backend "gcs" {
- prefix = "dev-infra-tf/slurm-gcp-state"
- }
-}
-
-locals {
- github_owner = "GoogleCloudPlatform"
- github_repo = "slurm-gcp"
-}
diff --git a/test/cloud-build/provision/pr-validation.tf b/test/cloud-build/provision/pr-validation.tf
deleted file mode 100644
index 312f8bf7..00000000
--- a/test/cloud-build/provision/pr-validation.tf
+++ /dev/null
@@ -1,28 +0,0 @@
-# Copyright 2023 Google LLC
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-resource "google_cloudbuild_trigger" "slurm_pr_validation" {
- name = "Slurm-PR-validation"
- filename = "test/cloud-build/pr-validation.yaml"
-
- github {
- owner = local.github_owner
- name = local.github_repo
- pull_request {
- branch = ".*"
- comment_control = "COMMENTS_ENABLED_FOR_EXTERNAL_CONTRIBUTORS_ONLY"
- }
- }
- include_build_logs = "INCLUDE_BUILD_LOGS_WITH_STATUS"
-}
diff --git a/test/cloud-build/provision/providers.tf b/test/cloud-build/provision/providers.tf
deleted file mode 100644
index f39ee0f5..00000000
--- a/test/cloud-build/provision/providers.tf
+++ /dev/null
@@ -1,21 +0,0 @@
-/**
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-provider "google" {
- project = var.project_id
- zone = var.zone
- region = var.region
-}
diff --git a/test/cloud-build/provision/variables.tf b/test/cloud-build/provision/variables.tf
deleted file mode 100644
index 9a7976cb..00000000
--- a/test/cloud-build/provision/variables.tf
+++ /dev/null
@@ -1,32 +0,0 @@
-/**
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-variable "project_id" {
- description = "GCP project ID"
- type = string
-}
-
-variable "region" {
- description = "GCP region"
- type = string
- default = "us-central1"
-}
-
-variable "zone" {
- description = "GCP zone"
- type = string
- default = "us-central1-c"
-}
diff --git a/test/cloud-build/provision/versions.tf b/test/cloud-build/provision/versions.tf
deleted file mode 100644
index bbdd8b6e..00000000
--- a/test/cloud-build/provision/versions.tf
+++ /dev/null
@@ -1,24 +0,0 @@
-# Copyright 2023 Google LLC
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-terraform {
- required_version = ">= 0.13"
-
- required_providers {
- google = {
- source = "hashicorp/google"
- version = "~> 4.84.0"
- }
- }
-}