Skip to content

Commit 214ca5d

Browse files
committed
Trivial fix
Signed-off-by: Justin Cinkelj <justin.cinkelj@xlab.si>
1 parent a32b0c7 commit 214ca5d

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

.github/workflows/integ-test.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -113,12 +113,16 @@ jobs:
113113
- run: apt install -y jq
114114
- run: mkdir -p $WORKDIR
115115
- run: cp -a ./ $WORKDIR
116-
116+
# A few files are not an example playbook:
117+
# hypercore_inventory.yml - inventory example
118+
# cloud-init-user-data-example.yml - cloud-init user-data example
117119
- id: set-matrix
118120
shell: bash
119121
run: |-
120122
echo "matrix=$(
121-
ls -r $WORKDIR/examples | jq -R -s -c 'split("\n")[:-1]'
123+
ls -r $WORKDIR/examples |
124+
grep -v -E "^README.md$|^hypercore_inventory.yml$|^cloud-init-user-data-example.yml$" |
125+
jq -R -s -c 'split("\n")[:-1]'
122126
)" >> $GITHUB_OUTPUT
123127
if: "${{ github.event.inputs || github.event.schedule }}"
124128

@@ -144,7 +148,7 @@ jobs:
144148
- run: pip install ansible-core~=${{ matrix.ansible }}
145149
- run: mkdir -p $WORKDIR
146150
- run: cp -a ./ $WORKDIR
147-
- run: cd $WORKDIR && ansible-galaxy collection install community.crypto
151+
- run: cd $WORKDIR && ansible-galaxy collection install community.crypto community.general
148152
- run: cd $WORKDIR && ansible-galaxy collection list
149153
- run: |
150154
cd $WORKDIR
@@ -154,7 +158,7 @@ jobs:
154158
echo "smb_password: ${{ secrets.CI_CONFIG_HC_IP50_SMB_PASSWORD }}" >> tests/integration/integration_config.yml
155159
echo "sc_replication_dest_password: ${{ secrets.CI_CONFIG_HC_IP50_SC_REPLICATION_DEST_PASSWORD }}" >> tests/integration/integration_config.yml
156160
ls -al tests/integration/integration_config.yml
157-
- run: cd $WORKDIR && ansible-playbook --check ${{ matrix.example_name }}
161+
- run: cd $WORKDIR && ansible-playbook --check examples/${{ matrix.example_name }}
158162

159163
integ:
160164
needs:

0 commit comments

Comments
 (0)