diff --git a/.github/workflows/black.yaml b/.github/workflows/black.yaml new file mode 100644 index 00000000..11cf9ca1 --- /dev/null +++ b/.github/workflows/black.yaml @@ -0,0 +1,15 @@ +# https://black.readthedocs.io/en/stable/integrations/github_actions.html +name: Python lint +on: + - push + - pull_request +jobs: + python-lint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: psf/black@stable + with: + options: "--check --verbose" + src: "./" + version: "~= 22.0" diff --git a/.github/workflows/terraform.yaml b/.github/workflows/terraform.yaml new file mode 100644 index 00000000..86e0a814 --- /dev/null +++ b/.github/workflows/terraform.yaml @@ -0,0 +1,17 @@ +# https://github.com/hashicorp/setup-terraform +name: Terraform validation +on: + - push + - pull_request +jobs: + terraform-fmt: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: hashicorp/setup-terraform@v3 + with: + terraform_version: "1.5.7" # Cloud Shell version + + - name: terraform fmt + id: fmt + run: terraform fmt -check -recursive diff --git a/.gitignore b/.gitignore new file mode 100644 index 00000000..ea4727c7 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +# IDEs +*.code-workspace