Skip to content

Commit 0cff600

Browse files
committed
Added initial GitHub workflows
1 parent 19dce68 commit 0cff600

File tree

3 files changed

+34
-0
lines changed

3 files changed

+34
-0
lines changed

.github/workflows/black.yaml

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# https://black.readthedocs.io/en/stable/integrations/github_actions.html
2+
name: Python lint
3+
on:
4+
- push
5+
- pull_request
6+
jobs:
7+
python-lint:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v4
11+
- uses: psf/black@stable
12+
with:
13+
options: "--check --verbose"
14+
src: "./"
15+
version: "~= 22.0"

.github/workflows/terraform.yaml

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# https://github.com/hashicorp/setup-terraform
2+
name: Terraform validation
3+
on:
4+
- push
5+
- pull_request
6+
jobs:
7+
terraform-fmt:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v4
11+
- uses: hashicorp/setup-terraform@v3
12+
with:
13+
terraform_version: "1.5.7" # Cloud Shell version
14+
15+
- name: terraform fmt
16+
id: fmt
17+
run: terraform fmt -check -recursive

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# IDEs
2+
*.code-workspace

0 commit comments

Comments
 (0)