Skip to content

Commit

Permalink
gh: Adjusted zpa test workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
willguibr committed Apr 27, 2024
1 parent dc2b08a commit cb4fea0
Showing 1 changed file with 23 additions and 6 deletions.
29 changes: 23 additions & 6 deletions .github/workflows/zpa-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ on:
- cron: '0 15 * * 1-5' # UTC
workflow_dispatch:

env:
NAMESPACE: zscaler
COLLECTION_NAME: zpacloud
PYTHON_VERSION: 3.10

jobs:
zpa-qa1-tenants:
runs-on: ubuntu-latest
Expand All @@ -23,10 +28,14 @@ jobs:
- ZPA_QA_TENANT01
- ZPA_QA_TENANT02
environment: ${{ matrix.environment }}
defaults:
run:
working-directory: ./ansible_collections/${{ env.NAMESPACE }}/${{ env.COLLECTION_NAME }}
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
path: ./ansible_collections/${{ env.NAMESPACE }}/${{ env.COLLECTION_NAME }}
token: ${{ secrets.GITHUB_TOKEN }}

- name: Set up Python
Expand Down Expand Up @@ -59,8 +68,8 @@ jobs:
- name: Install Ansible
run: pip install ansible

- name: Install collection from Galaxy
run: ansible-galaxy collection install zscaler.zpacloud
- name: Build and install collection locally
run: poetry run make install

- name: Run tests with retry
uses: nick-fields/retry@v3
Expand All @@ -85,10 +94,14 @@ jobs:
environment:
- ZPA_BETA_TENANT01
environment: ${{ matrix.environment }}
defaults:
run:
working-directory: ./ansible_collections/${{ env.NAMESPACE }}/${{ env.COLLECTION_NAME }}
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
path: ./ansible_collections/${{ env.NAMESPACE }}/${{ env.COLLECTION_NAME }}
token: ${{ secrets.GITHUB_TOKEN }}

- name: Set up Python
Expand Down Expand Up @@ -121,8 +134,8 @@ jobs:
- name: Install Ansible
run: pip install ansible

- name: Install collection from Galaxy
run: ansible-galaxy collection install zscaler.zpacloud
- name: Build and install collection locally
run: poetry run make install

- name: Install dependencies
run: poetry install
Expand Down Expand Up @@ -152,10 +165,14 @@ jobs:
environment:
- ZPA_PROD_TENANT01
environment: ${{ matrix.environment }}
defaults:
run:
working-directory: ./ansible_collections/${{ env.NAMESPACE }}/${{ env.COLLECTION_NAME }}
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
path: ./ansible_collections/${{ env.NAMESPACE }}/${{ env.COLLECTION_NAME }}
token: ${{ secrets.GITHUB_TOKEN }}

- name: Set up Python
Expand Down Expand Up @@ -188,8 +205,8 @@ jobs:
- name: Install Ansible
run: pip install ansible

- name: Install collection from Galaxy
run: ansible-galaxy collection install zscaler.zpacloud
- name: Build and install collection locally
run: poetry run make install

- name: Install dependencies
run: poetry install
Expand Down

0 comments on commit cb4fea0

Please sign in to comment.