Skip to content

Commit

Permalink
WIP Test Caching for TF lock
Browse files Browse the repository at this point in the history
Updates versions of actions to Node20 versions where applicable.
Updates variable names in lock_providers.py
Adds docstring to lockproviders.py
Adds terraform.lock.hcl to each module folder
  • Loading branch information
grumhelden committed Aug 6, 2024
1 parent e0706f5 commit fc41530
Show file tree
Hide file tree
Showing 23 changed files with 511 additions and 5 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:
workflow_call:

env:
TF_PROJECT_DIR: terraform
TF_PLUGIN_CACHE_DIR: ${{ github.workspace }}/.terraform.d/plugin-cache

jobs:
Expand Down Expand Up @@ -40,7 +41,7 @@ jobs:
steps:
- uses: actions/checkout@v4

- uses: actions/setup-python@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ needs.preflight.outputs.python_version }}

Expand All @@ -56,7 +57,7 @@ jobs:
run: python -m pip install --upgrade pipenv wheel

- id: cache-pipenv
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ~/.local/share/virtualenvs
key: ${{ runner.os }}-pipenv-${{ hashFiles('**/Pipfile.lock') }}-dev
Expand All @@ -66,6 +67,10 @@ jobs:
run: make install_ci
env:
PIPENV_DEV: true

- id: cache-terraform-providers
uses: actions/cache@v4
with:
path: $TF_PLUGIN_CACHE_DIR
key: ${CI_PROJECT_DIR}/plugin-cache
- name: Test
run: make test
22 changes: 22 additions & 0 deletions modules/automation-account/test/.terraform.lock.hcl

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 22 additions & 0 deletions modules/automation-runbook/test/.terraform.lock.hcl

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 22 additions & 0 deletions modules/cdn-profile/test/.terraform.lock.hcl

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 22 additions & 0 deletions modules/data-factory/test/.terraform.lock.hcl

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 22 additions & 0 deletions modules/firewall-policy/test/.terraform.lock.hcl

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 22 additions & 0 deletions modules/firewall/test/.terraform.lock.hcl

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 22 additions & 0 deletions modules/key-vault/test/.terraform.lock.hcl

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 22 additions & 0 deletions modules/kubernetes-cluster/test/.terraform.lock.hcl

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 22 additions & 0 deletions modules/log-analytics-workspace/test/.terraform.lock.hcl

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

42 changes: 42 additions & 0 deletions modules/mysql-flexible-server/test/.terraform.lock.hcl

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 22 additions & 0 deletions modules/point-to-site-vpn-gateway/test/.terraform.lock.hcl

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 22 additions & 0 deletions modules/postgresql-flexible-server/test/.terraform.lock.hcl

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 22 additions & 0 deletions modules/private-dns-resolver/test/.terraform.lock.hcl

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 22 additions & 0 deletions modules/private-endpoint/test/.terraform.lock.hcl

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit fc41530

Please sign in to comment.