From 1dd0231373aef3fc62ef963fc4c3a6eb7802056f Mon Sep 17 00:00:00 2001 From: GitHub Terraform Date: Mon, 29 Apr 2024 11:45:39 -0700 Subject: [PATCH] gh: Changed workflow schedule --- .github/workflows/zpa-test.yml | 78 ++++++++++++++++++++++++++++++---- 1 file changed, 69 insertions(+), 9 deletions(-) diff --git a/.github/workflows/zpa-test.yml b/.github/workflows/zpa-test.yml index 8edaead8..3018731c 100644 --- a/.github/workflows/zpa-test.yml +++ b/.github/workflows/zpa-test.yml @@ -11,7 +11,7 @@ on: # change. schedule: - - cron: '0 13 * * 1-5' # UTC + - cron: '0 12 * * 1-5' # UTC workflow_dispatch: jobs: @@ -26,13 +26,28 @@ jobs: - ZPA_QA_TENANT02 environment: ${{ matrix.environment }} steps: - - name: Checkout + - name: Checkout code uses: actions/checkout@v4 + with: + token: ${{ secrets.GITHUB_TOKEN }} - name: Setup Go uses: actions/setup-go@v5 with: - go-version: "1.21" + go-version: ${{ matrix.goVersion }} + + - name: Clean existing Go modules + run: go clean -modcache + + - name: Cache Go modules + uses: actions/cache@v4 + with: + path: | + ~/go/pkg/mod + ~/.cache/go-build + key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} + restore-keys: | + ${{ runner.os }}-go- - name: Setup Go Tools run: make tools @@ -84,13 +99,28 @@ jobs: # - ZPA_QA2_TENANT02 environment: ${{ matrix.environment }} steps: - - name: Checkout + - name: Checkout code uses: actions/checkout@v4 + with: + token: ${{ secrets.GITHUB_TOKEN }} - name: Setup Go uses: actions/setup-go@v5 with: - go-version: "1.21" + go-version: ${{ matrix.goVersion }} + + - name: Clean existing Go modules + run: go clean -modcache + + - name: Cache Go modules + uses: actions/cache@v4 + with: + path: | + ~/go/pkg/mod + ~/.cache/go-build + key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} + restore-keys: | + ${{ runner.os }}-go- - name: Setup Go Tools run: make tools @@ -141,13 +171,28 @@ jobs: - ZPA_BETA_TENANT01 environment: ${{ matrix.environment }} steps: - - name: Checkout + - name: Checkout code uses: actions/checkout@v4 + with: + token: ${{ secrets.GITHUB_TOKEN }} - name: Setup Go uses: actions/setup-go@v5 with: - go-version: "1.21" + go-version: ${{ matrix.goVersion }} + + - name: Clean existing Go modules + run: go clean -modcache + + - name: Cache Go modules + uses: actions/cache@v4 + with: + path: | + ~/go/pkg/mod + ~/.cache/go-build + key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} + restore-keys: | + ${{ runner.os }}-go- - name: Setup Go Tools run: make tools @@ -201,13 +246,28 @@ jobs: - ZPA_PROD_TENANT01 environment: ${{ matrix.environment }} steps: - - name: Checkout + - name: Checkout code uses: actions/checkout@v4 + with: + token: ${{ secrets.GITHUB_TOKEN }} - name: Setup Go uses: actions/setup-go@v5 with: - go-version: "1.21" + go-version: ${{ matrix.goVersion }} + + - name: Clean existing Go modules + run: go clean -modcache + + - name: Cache Go modules + uses: actions/cache@v4 + with: + path: | + ~/go/pkg/mod + ~/.cache/go-build + key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} + restore-keys: | + ${{ runner.os }}-go- - name: Setup Go Tools run: make tools