From b559e836e4f32573a5fa824e36b7319329a0bc7c Mon Sep 17 00:00:00 2001 From: Rick Elrod Date: Wed, 6 Sep 2023 13:15:31 -0500 Subject: [PATCH] Fix CI warnings (yamllint and GitHub Actions) (#1547) - Fix indentation on one of the newer molecule files. - Update to actions/checkout@v3 and actions/setup-python@v4 and helm/kind-action@v1.8.0. Signed-off-by: Rick Elrod --- .github/workflows/ci.yaml | 10 +-- .github/workflows/devel.yaml | 2 +- .github/workflows/label_issue.yml | 2 +- .github/workflows/label_pr.yml | 2 +- .github/workflows/stage.yml | 4 +- molecule/default/tasks/awx_replicas_test.yml | 86 ++++++++++---------- 6 files changed, 53 insertions(+), 53 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 0ad9844b..fdcdfa29 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -18,9 +18,9 @@ jobs: env: DOCKER_API_VERSION: "1.41" steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - - uses: actions/setup-python@v2 + - uses: actions/setup-python@v4 with: python-version: "3.8" @@ -45,12 +45,12 @@ jobs: runs-on: ubuntu-latest name: helm steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 with: fetch-depth: 0 - name: Create k8s Kind Cluster - uses: helm/kind-action@v1.2.0 + uses: helm/kind-action@v1.8.0 - name: Build operator image and load into kind run: | @@ -88,7 +88,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout sources - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Check no_log statements run: | diff --git a/.github/workflows/devel.yaml b/.github/workflows/devel.yaml index 54865d49..3917ed4b 100644 --- a/.github/workflows/devel.yaml +++ b/.github/workflows/devel.yaml @@ -11,7 +11,7 @@ jobs: runs-on: ubuntu-latest name: Push devel image steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Build Image run: | diff --git a/.github/workflows/label_issue.yml b/.github/workflows/label_issue.yml index e29a8bab..d5c52433 100644 --- a/.github/workflows/label_issue.yml +++ b/.github/workflows/label_issue.yml @@ -26,7 +26,7 @@ jobs: runs-on: ubuntu-latest name: Label Issue - Community steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - uses: actions/setup-python@v4 - name: Install python requests run: pip install requests diff --git a/.github/workflows/label_pr.yml b/.github/workflows/label_pr.yml index 356e3dcc..e1db0aed 100644 --- a/.github/workflows/label_pr.yml +++ b/.github/workflows/label_pr.yml @@ -12,7 +12,7 @@ jobs: runs-on: ubuntu-latest name: Label PR - Community steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - uses: actions/setup-python@v4 - name: Install python requests run: pip install requests diff --git a/.github/workflows/stage.yml b/.github/workflows/stage.yml index eac03187..7ef76bf0 100644 --- a/.github/workflows/stage.yml +++ b/.github/workflows/stage.yml @@ -38,13 +38,13 @@ jobs: exit 0 - name: Checkout awx - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: repository: ${{ github.repository_owner }}/awx path: awx - name: Checkout awx-operator - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: repository: ${{ github.repository_owner }}/awx-operator path: awx-operator diff --git a/molecule/default/tasks/awx_replicas_test.yml b/molecule/default/tasks/awx_replicas_test.yml index 3c12c9bc..93afe7ec 100644 --- a/molecule/default/tasks/awx_replicas_test.yml +++ b/molecule/default/tasks/awx_replicas_test.yml @@ -1,64 +1,64 @@ --- - block: - - debug: - msg: test - web_replicas and task_replicas should override replicas + - debug: + msg: test - web_replicas and task_replicas should override replicas - - include_tasks: apply_awx_spec.yml - vars: - additional_fields: - replicas: 2 - web_replicas: 0 - task_replicas: 0 + - include_tasks: apply_awx_spec.yml + vars: + additional_fields: + replicas: 2 + web_replicas: 0 + task_replicas: 0 - - include_tasks: _test_case_replicas.yml - vars: - expected_web_replicas: 0 - expected_task_replicas: 0 + - include_tasks: _test_case_replicas.yml + vars: + expected_web_replicas: 0 + expected_task_replicas: 0 #### - - debug: - msg: test - replicas should act as a default + - debug: + msg: test - replicas should act as a default - - include_tasks: apply_awx_spec.yml - vars: - additional_fields: - replicas: 2 - web_replicas: 1 + - include_tasks: apply_awx_spec.yml + vars: + additional_fields: + replicas: 2 + web_replicas: 1 - - include_tasks: _test_case_replicas.yml - vars: - expected_web_replicas: 1 - expected_task_replicas: 2 + - include_tasks: _test_case_replicas.yml + vars: + expected_web_replicas: 1 + expected_task_replicas: 2 #### - - debug: - msg: test - replicas=0 should kill all pods + - debug: + msg: test - replicas=0 should kill all pods - - include_tasks: apply_awx_spec.yml - vars: - additional_fields: - replicas: 0 + - include_tasks: apply_awx_spec.yml + vars: + additional_fields: + replicas: 0 - - include_tasks: _test_case_replicas.yml - vars: - expected_web_replicas: 0 - expected_task_replicas: 0 + - include_tasks: _test_case_replicas.yml + vars: + expected_web_replicas: 0 + expected_task_replicas: 0 #### - - debug: - msg: test - replicas=3 should give 3 of each + - debug: + msg: test - replicas=3 should give 3 of each - - include_tasks: apply_awx_spec.yml - vars: - additional_fields: - replicas: 3 + - include_tasks: apply_awx_spec.yml + vars: + additional_fields: + replicas: 3 - - include_tasks: _test_case_replicas.yml - vars: - expected_web_replicas: 3 - expected_task_replicas: 3 + - include_tasks: _test_case_replicas.yml + vars: + expected_web_replicas: 3 + expected_task_replicas: 3 tags: - replicas