Skip to content

Rename predefined metric #681

Rename predefined metric

Rename predefined metric #681

Workflow file for this run

# Copyright (c) University College London Hospitals NHS Foundation Trust
#
# 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.
---
name: PR Checks
on:
pull_request:
jobs:
lint:
name: Validate
runs-on: ubuntu-latest
concurrency:
group: "${{ github.workflow }}-${{ github.head_ref }}-validate"
cancel-in-progress: true
steps:
- name: Checkout code
uses: actions/checkout@v3
- uses: actions/cache@v2
name: Cache tf plugin dir
with:
path: ~/.tflint.d/plugins
key: tflint-${{ hashFiles('.tflint.hcl') }}
- uses: hashicorp/setup-terraform@v2
name: Set up Terraform
with:
terraform_wrapper: false
terraform_version: 1.3.7
- name: Setup Terragrunt
run: |
sudo wget -q -O /bin/terragrunt \
"https://github.com/gruntwork-io/terragrunt/releases/download/v0.44.5/terragrunt_linux_amd64"
sudo chmod +x /bin/terragrunt
- uses: terraform-linters/setup-tflint@v2
name: Setup TFLint
with:
tflint_version: v0.46.0
- name: Terragrunt init
run: terragrunt run-all init
- name: Run pre-commit checks
uses: pre-commit/action@v3.0.0