-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #18 from edwardtheharris/3-add-gke-module
add gke module Closes #3
- Loading branch information
Showing
26 changed files
with
995 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
name: Sonar Scan | ||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
branches: | ||
- main | ||
jobs: | ||
sonarcloud: | ||
name: SonarCloud | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python-version: ["3.9", "3.10", "3.11", "3.12"] | ||
steps: | ||
- name: Checkout the code | ||
uses: actions/checkout@main | ||
with: | ||
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis | ||
- name: Setup Python | ||
uses: actions/setup-python@main | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Setup TFLint | ||
uses: terraform-linters/setup-tflint@master | ||
- name: Configure Python | ||
run: | | ||
set -x | ||
pip3 install -U pip pipenv | ||
pipenv requirements --dev > reqs | ||
pip3 install -r reqs | ||
pytest --cov --cov-report=xml | ||
pylint --output-format=parseable --output=pylint.lint gke/*.py | ||
sed -i -e "s/project_version/$(cat .version)-$(git rev-parse --short=6 HEAD)/g" sonar-project.properties | ||
- name: Run TFLint | ||
run: tflint --recursive -f json > tflint.json || true | ||
- name: SonarCloud Scan | ||
uses: SonarSource/sonarcloud-github-action@master | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any | ||
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} | ||
- name: Coveralls | ||
uses: coverallsapp/github-action@v2 | ||
with: | ||
parallel: true | ||
flag-name: run-${{ matrix.python-version }} | ||
|
||
finish: | ||
needs: sonarcloud | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Close parallel build | ||
uses: coverallsapp/github-action@v1 | ||
with: | ||
parallel-finished: true | ||
carryforward: "run-3.9,run-3.10,run-3.11,run-3.12" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,9 @@ | ||
.terraform/ | ||
__pycache__/ | ||
.coverage | ||
.terraform.lock.hcl | ||
.terraform/ | ||
*.tfvars | ||
*.xml | ||
pylint.lint | ||
pylint.out | ||
tflint.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
# See https://pre-commit.com for more information | ||
# See https://pre-commit.com/hooks.html for more hooks | ||
repos: | ||
- hooks: | ||
- id: trailing-whitespace | ||
- id: end-of-file-fixer | ||
- id: check-yaml | ||
- id: check-added-large-files | ||
repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v3.2.0 | ||
- hooks: | ||
- args: | ||
- >- | ||
markdown | ||
- >- | ||
document | ||
- >- | ||
--anchor=false | ||
- >- | ||
--escape=false | ||
- >- | ||
--output-file=README.md | ||
- >- | ||
./ | ||
id: terraform-docs-go | ||
- args: | ||
- >- | ||
markdown | ||
- >- | ||
document | ||
- >- | ||
--anchor=false | ||
- >- | ||
--escape=false | ||
- >- | ||
--output-file=index.md | ||
- >- | ||
./aks | ||
id: terraform-docs-go | ||
- args: | ||
- >- | ||
markdown | ||
- >- | ||
document | ||
- >- | ||
--anchor=false | ||
- >- | ||
--escape=false | ||
- >- | ||
--output-file=index.md | ||
- >- | ||
./eks | ||
id: terraform-docs-go | ||
- args: | ||
- >- | ||
markdown | ||
- >- | ||
document | ||
- >- | ||
--anchor=false | ||
- >- | ||
--escape=false | ||
- >- | ||
--output-file=index.md | ||
- >- | ||
./gke | ||
id: terraform-docs-go | ||
repo: https://github.com/terraform-docs/terraform-docs | ||
rev: v0.17.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
0.0.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
[[source]] | ||
url = "https://pypi.org/simple" | ||
verify_ssl = true | ||
name = "pypi" | ||
|
||
[packages] | ||
pytest = "*" | ||
pytest-cov = "*" | ||
pylint = "*" | ||
coveralls = "*" | ||
|
||
[dev-packages] |
Oops, something went wrong.