File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff 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 :
You can’t perform that action at this time.
0 commit comments