Skip to content

ZDX Test

ZDX Test #25

Workflow file for this run

name: ZDX Test
on:
pull_request:
types: [opened, synchronize]
merge_group:
types: [checks_requested]
push:
branches:
- master
# For systems with an upstream API that could drift unexpectedly (like most SaaS systems, etc.),
# we recommend testing at a regular interval not necessarily tied to code changes. This will
# ensure you are alerted to something breaking due to an API change, even if the code did not
# change.
schedule:
- cron: '0 14 * * 1-5' # UTC
workflow_dispatch:
jobs:
zdx-zs2:
environment: ZDX_ZS2
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
goVersion: ["1.19", "1.20"]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.goVersion }}
- name: Set Go env
run: |
echo "GOPATH=$(go env GOPATH)" >> $GITHUB_ENV
echo "$(go env GOPATH)/bin" >> $GITHUB_PATH
- name: Pull external libraries
run: make vendor
- name: Run tests with retry
uses: nick-fields/retry@v2
with:
max_attempts: 1
timeout_minutes: 10 # Adjust as needed
command: |
make test:integration:zdx
env:
ZDX_API_KEY_ID: ${{ secrets.ZDX_API_KEY_ID }}
ZDX_API_SECRET: ${{ secrets.ZDX_API_SECRET }}
zdx-zs3:
environment: ZDX_ZS3
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
goVersion: ["1.19", "1.20"]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.goVersion }}
- name: Set Go env
run: |
echo "GOPATH=$(go env GOPATH)" >> $GITHUB_ENV
echo "$(go env GOPATH)/bin" >> $GITHUB_PATH
- name: Pull external libraries
run: make vendor
- name: Run tests with retry
uses: nick-fields/retry@v2
with:
max_attempts: 1
timeout_minutes: 10 # Adjust as needed
command: |
make test:integration:zdx
env:
ZDX_API_KEY_ID: ${{ secrets.ZDX_API_KEY_ID }}
ZDX_API_SECRET: ${{ secrets.ZDX_API_SECRET }}