chore: consolidate integration tests #30
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Test Modules | |
| on: | |
| workflow_dispatch: | |
| pull_request: | |
| branches: | |
| - master | |
| jobs: | |
| integration-test: | |
| environment: test | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: 3.x | |
| - name: Install Python dependencies | |
| run: | | |
| python3 -m pip install --upgrade pip | |
| python3 -m pip install -r requirements.txt | |
| python3 -m pip list | |
| - name: Build | |
| id: build | |
| run: | | |
| OUTPUT=$(ansible-galaxy collection build) | |
| echo "$OUTPUT" | |
| COLLECTION_PATH=$(echo "$OUTPUT" | grep -o '/[^ ]*\.tar\.gz') | |
| echo "collection_path=$COLLECTION_PATH" >> $GITHUB_OUTPUT | |
| echo "Collection path: $COLLECTION_PATH" | |
| - name: Install collection | |
| run: ansible-galaxy collection install ${{ steps.build.outputs.collection_path }} --force | |
| working-directory: tests/integration | |
| - name: Run get-vaults | |
| run: ansible-playbook test_manage_server.yml | |
| working-directory: tests/integration | |
| env: | |
| DVLS_APP_KEY: ${{ secrets.DVLS_APP_KEY }} | |
| DVLS_APP_SECRET: ${{ secrets.DVLS_APP_SECRET }} | |
| DVLS_SERVER_BASE_URL: ${{ secrets.DVLS_SERVER_BASE_URL }} | |
| DVLS_VAULT_ID: ${{ secrets.DVLS_VAULT_ID }} | |
| - name: Run get-secrets | |
| run: ansible-playbook test_manage_secrets.yml | |
| working-directory: tests/integration | |
| env: | |
| DVLS_APP_KEY: ${{ secrets.DVLS_APP_KEY }} | |
| DVLS_APP_SECRET: ${{ secrets.DVLS_APP_SECRET }} | |
| DVLS_SERVER_BASE_URL: ${{ secrets.DVLS_SERVER_BASE_URL }} | |
| DVLS_VAULT_ID: ${{ secrets.DVLS_VAULT_ID }} |