Skip to content

Commit 17d4af3

Browse files
Merge pull request #205 from MonolithProjects/ci/test_improvement
ci: test improvement
2 parents bac52df + da54331 commit 17d4af3

File tree

5 files changed

+5
-10
lines changed

5 files changed

+5
-10
lines changed

.github/workflows/pre-commit.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
pre-commit:
1212
runs-on: ubuntu-20.04
1313
steps:
14-
- uses: actions/checkout@v3
14+
- uses: actions/checkout@v4
1515
- uses: actions/setup-python@v5
1616
with:
1717
python-version: '3.x'

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
- os: "rockylinux8"
4141
steps:
4242
- name: checkout
43-
uses: actions/checkout@v3
43+
uses: actions/checkout@v4
4444
with:
4545
path: "${{ github.repository }}"
4646

molecule/default/verify.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,7 @@
3131
- name: Check Runner
3232
ansible.builtin.assert:
3333
that:
34-
- runner_name in registered_runners.json.runners|map(attribute='name')|list
35-
- registered_runners.json.runners|map(attribute='status') == ["online"]
34+
- registered_runners.json.runners.0.status == "online"
3635
quiet: true
3736

3837
- name: Check Labels (skipped if labels are OK)

molecule/org/verify.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,5 +31,5 @@
3131
- name: Check Runner
3232
ansible.builtin.assert:
3333
that:
34-
- runner_name in registered_runners.json.runners|map(attribute='name')|list
34+
- registered_runners.json.runners.0.status == "offline"
3535
quiet: true

molecule/repo/verify.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,10 @@
2828
force_basic_auth: yes
2929
register: registered_runners
3030

31-
- name: Debug | var registered_runners
32-
ansible.builtin.debug:
33-
var: registered_runners.json.runners|map(attribute='status')
34-
3531
- name: Check Runner
3632
ansible.builtin.assert:
3733
that:
38-
- runner_name in registered_runners.json.runners|map(attribute='name')|list
34+
- registered_runners.json.runners.0.status == "online"
3935
quiet: true
4036

4137
- name: Check Labels (skipped if labels are OK)

0 commit comments

Comments
 (0)