diff --git a/.github/ISSUE_TEMPLATE/bug_report.yaml b/.github/ISSUE_TEMPLATE/bug_report.yaml index 8ffc4194e..bb9ef9046 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.yaml +++ b/.github/ISSUE_TEMPLATE/bug_report.yaml @@ -88,5 +88,5 @@ body: attributes: label: Additional context description: - To help us understand the issue, please include any relevant screenshots, - Terraform plan/apply output, etc. + To help us understand the issue, please include any relevant screenshots, + Terraform plan/apply output, etc. diff --git a/.github/actions/fabric-tests/action.yml b/.github/actions/fabric-tests/action.yml index 28a085155..05f93fcf7 100644 --- a/.github/actions/fabric-tests/action.yml +++ b/.github/actions/fabric-tests/action.yml @@ -66,6 +66,7 @@ runs: uses: actions/cache@v4 with: path: ${{ env.TF_PLUGIN_CACHE_DIR }} + # yamllint disable-line rule:line-length key: ${{ runner.os }}-${{ inputs.TERRAFORM_FLAVOUR }}-${{ inputs.TERRAFORM_VERSION }}-${{ hashFiles('tools/lockfile/.terraform.lock.hcl') }} # avoid conflicts with user-installed providers on local machines - name: Pin provider versions diff --git a/.github/actions/post-fabric-tests/action.yml b/.github/actions/post-fabric-tests/action.yml index 8fe774d6f..9f2cd38c7 100644 --- a/.github/actions/post-fabric-tests/action.yml +++ b/.github/actions/post-fabric-tests/action.yml @@ -26,8 +26,7 @@ runs: sed -e 's/\\n/\n/g' test-results-raw.xml > test-results.xml - name: Test report - uses: pmeier/pytest-results-action@035bda205f160abee0b277db11ac6ca01175ca7d # v0.6.0 + uses: pmeier/pytest-results-action@035bda205f160abee0b277db11ac6ca01175ca7d # v0.6.0 with: path: test-results.xml title: ${{ inputs.MODULE }} Test report - diff --git a/.github/labeler.yml b/.github/labeler.yml index afe3fe90c..eb987acc1 100644 --- a/.github/labeler.yml +++ b/.github/labeler.yml @@ -12,10 +12,11 @@ # See the License for the specific language governing permissions and # limitations under the License. +# yamllint disable rule:indentation 'on:blueprints': - changed-files: - any-glob-to-any-file: - - 'blueprints/**' + - 'blueprints/**' 'on:FAST': - changed-files: diff --git a/.github/workflows/daily-tag.yml b/.github/workflows/daily-tag.yml index 6a95e649c..12f4ae11c 100644 --- a/.github/workflows/daily-tag.yml +++ b/.github/workflows/daily-tag.yml @@ -15,6 +15,7 @@ name: | Create daily release tags +# yamllint disable-line rule:truthy on: workflow_dispatch: schedule: diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml index 669e5d67c..cfa8eb5bd 100644 --- a/.github/workflows/labeler.yml +++ b/.github/workflows/labeler.yml @@ -14,6 +14,7 @@ name: "Label Pull Requests" +# yamllint disable-line rule:truthy on: # only used for PRs that involve labeler itself # https://github.com/actions/labeler?tab=readme-ov-file#notes-regarding-pull_request_target-event diff --git a/.github/workflows/linting.yml b/.github/workflows/linting.yml index dac5aad88..f329e33af 100644 --- a/.github/workflows/linting.yml +++ b/.github/workflows/linting.yml @@ -13,6 +13,7 @@ # limitations under the License. name: "Linting" +# yamllint disable-line rule:truthy on: pull_request: branches: @@ -100,12 +101,16 @@ jobs: - name: Check modules versions id: versions run: | - OUTPUT_TF=$(find . -type f -name 'versions.tf' -exec diff -I '[[:space:]]*module_name' -ub default-versions.tf {} \;) + OUTPUT_TF=$( + find . -type f -name 'versions.tf' -exec diff -I '[[:space:]]*module_name' -ub default-versions.tf {} \; + ) if [[ -n "${OUTPUT_TF}" ]] ; then echo "Terraform versions.tf:" echo "${OUTPUT_TF}" fi - OUTPUT_TOFU=$(find . -type f -name 'versions.tofu' -exec diff -I '[[:space:]]*module_name' -ub default-versions.tofu {} \;) + OUTPUT_TOFU=$( + find . -type f -name 'versions.tofu' -exec diff -I '[[:space:]]*module_name' -ub default-versions.tofu {} \; + ) if [[ -n "${OUTPUT_TOFU}" ]] ; then echo "Terraform versions.tofu:" echo "${OUTPUT_TOFU}" diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b4e30d963..c900e5c39 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -14,7 +14,7 @@ name: | Create a new release - +# yamllint disable-line rule:truthy on: workflow_dispatch: inputs: @@ -37,6 +37,7 @@ jobs: - uses: actions/checkout@v4 - name: "Validate input" + # yamllint disable rule:line-length run: | [[ "${{ github.event.inputs.changelog }}" != "true" ]] && { echo 'You didn''t update the changelog.' ; exit 1; } [[ -n "${{ github.event.inputs.version }}" ]] || { echo 'Version not specified!'; exit 1; } diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index a18d5ae76..72a49c3c9 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -13,6 +13,7 @@ # limitations under the License. name: "Tests" +# yamllint disable-line rule:truthy on: push: branches: @@ -82,7 +83,8 @@ jobs: sed -i -e 's/>=\(.*# tftest\)/=\1/g' tools/lockfile/versions.tf tools/lockfile/versions.tofu # change terraform version to the one that is running - sed -i 's/required_version = .*$/required_version = ">= ${{ env.TERRAFORM_VERSION }}"/g' tools/lockfile/versions.tf + sed -i 's/required_version = .*$/required_version = ">= ${{ env.TERRAFORM_VERSION }}"/g' \ + tools/lockfile/versions.tf cd tools/lockfile ${{ matrix.flavour }} init -upgrade=true @@ -91,6 +93,7 @@ jobs: uses: actions/cache@v4 with: path: ${{ env.TF_PLUGIN_CACHE_DIR }} + # yamllint disable-line rule:line-length key: ${{ runner.os }}-${{ matrix.flavour }}-${{ env.TERRAFORM_VERSION }}-${{ hashFiles('tools/lockfile/.terraform.lock.hcl') }} - name: Upload lockfile @@ -156,7 +159,9 @@ jobs: - name: Run tests on documentation examples env: TERRAFORM: ${{ matrix.flavour }} - run: pytest -vv ${{ matrix.flavour == 'terraform' && '-n4' || '-n4' }} --tb=line --junit-xml=test-results-raw.xml -k "terraform and modules/" tests/examples + run: | + pytest -vv ${{ matrix.flavour == 'terraform' && '-n4' || '-n4' }} --tb=line \ + --junit-xml=test-results-raw.xml -k "terraform and modules/" tests/examples - name: Create report uses: ./.github/actions/post-fabric-tests @@ -199,7 +204,9 @@ jobs: - name: Run tests modules env: TERRAFORM: ${{ matrix.flavour }} - run: pytest -vv ${{ matrix.flavour == 'terraform' && '-n4' || '-n4' }} --tb=line --junit-xml=test-results-raw.xml tests/modules + run: | + pytest -vv ${{ matrix.flavour == 'terraform' && '-n4' || '-n4' }} --tb=line \ + --junit-xml=test-results-raw.xml tests/modules - name: Create report uses: ./.github/actions/post-fabric-tests @@ -213,8 +220,8 @@ jobs: strategy: matrix: include: - - flavour: terraform - # - flavour: tofu # tofu fails to find the terraform binary for FAST tests + - flavour: terraform + # - flavour: tofu # tofu fails to find the terraform binary for FAST tests steps: - uses: actions/checkout@v4 - name: Set Terraform versions @@ -258,7 +265,9 @@ jobs: TERRAFORM_FLAVOUR: ${{ env.DEFAULT_TERRAFORM_FLAVOUR }} - name: Run schema tests - run: pytest -vv --tb=line --junit-xml=test-results-raw.xml -k "(tests and schemas) or (fast and schema) or (examples and yaml)" + run: | + pytest -vv --tb=line --junit-xml=test-results-raw.xml \ + -k "(tests and schemas) or (fast and schema) or (examples and yaml)" - name: Create report uses: ./.github/actions/post-fabric-tests