@@ -13,6 +13,9 @@ permissions:
1313 pull-requests : read
1414 contents : read
1515
16+ env :
17+ COLLECTION_PATH : .ansible/collections/ansible_collections/equinix/cloud
18+
1619jobs :
1720 authorize :
1821 environment :
@@ -47,24 +50,27 @@ jobs:
4750 uses : actions/checkout@v4
4851 with :
4952 repository : equinix-labs/ansible-collection-equinix
50- path : .ansible/collections/ansible_collections/equinix/cloud
53+ path : ${{ env.COLLECTION_PATH }}
5154 ref : main
5255
5356 - name : install dependencies of ansible collection
5457 run : pip3 install -r requirements-dev.txt -r requirements.txt
55- working-directory : .ansible/collections/ansible_collections/equinix/cloud
58+ working-directory : ${{ env.COLLECTION_PATH }}
59+
60+ - name : install collection
61+ run : make install
62+ working-directory : ${{ env.COLLECTION_PATH }}
5663
5764 - name : install cloned Python SDK
5865 run : python3 -m pip install .
5966
60-
6167 - name : replace existing keys
6268 run : rm -rf ~/.ansible/test && mkdir -p ~/.ansible/test && ssh-keygen -m PEM -q -t rsa -N '' -f ~/.ansible/test/id_rsa
63- working-directory : .ansible/collections/ansible_collections/equinix/cloud
69+ working-directory : ${{ env.COLLECTION_PATH }}
6470
6571 - name : run tests in ansible collection directory
6672 run : make testall
67- working-directory : .ansible/collections/ansible_collections/equinix/cloud
73+ working-directory : ${{ env.COLLECTION_PATH }}
6874 env :
6975 METAL_AUTH_TOKEN : ${{ secrets.METAL_AUTH_TOKEN }}
70-
76+ ANSIBLE_ACC_METAL_DEDICATED_CONNECTION_ID : ${{ secrets.ANSIBLE_ACC_METAL_DEDICATED_CONNECTION_ID }}
0 commit comments