Skip to content

Commit

Permalink
Added initial GitHub workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
arueth committed Sep 4, 2024
1 parent 19dce68 commit 0cff600
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/black.yaml
Original file line number Diff line number Diff line change
@@ -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"
17 changes: 17 additions & 0 deletions .github/workflows/terraform.yaml
Original file line number Diff line number Diff line change
@@ -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
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# IDEs
*.code-workspace

0 comments on commit 0cff600

Please sign in to comment.