Skip to content

Fix flex gateway inspect ocmmand #23

Fix flex gateway inspect ocmmand

Fix flex gateway inspect ocmmand #23

Workflow file for this run

name: Lint
on: [push, pull_request]
env:
TF_DIR: "./terraform"
jobs:
tflint:
runs-on: self-hosted
container: buildpack-deps:bookworm
steps:
- uses: actions/checkout@v4
name: Checkout source code
- name: Calculate tflint config hash
id: hash
run: |
echo "hash=$(sha256sum $TF_DIR/.tflint.hcl | cut -d' ' -f1)" >> $GITHUB_OUTPUT
- uses: actions/cache@v4
name: Cache plugin dir
with:
path: ~/.tflint.d/plugins
key: ${{ matrix.os }}-tflint-${{ steps.hash.outputs.hash }}
- uses: terraform-linters/setup-tflint@v4
name: Setup TFLint
with:
tflint_version: latest
- name: Show version
run: |
cd $TF_DIR
tflint --version
- name: Init TFLint
run: |
cd $TF_DIR
tflint --init
- name: Run TFLint
run: |
cd $TF_DIR
tflint -f compact