From 92c845baaad3590ddea03295300d660b59ca1875 Mon Sep 17 00:00:00 2001 From: John Watson Date: Tue, 10 Dec 2024 00:18:46 +0000 Subject: [PATCH] fixup lint --- .github/workflows/e2e-validation.yml | 8 +++++--- .github/workflows/run-api-test.yml | 9 ++++----- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/.github/workflows/e2e-validation.yml b/.github/workflows/e2e-validation.yml index 777bfde128..89e917fac9 100644 --- a/.github/workflows/e2e-validation.yml +++ b/.github/workflows/e2e-validation.yml @@ -96,6 +96,8 @@ jobs: # Run the npx task and store exit code in a variable npx cypress run --spec "cypress/e2e/${{ matrix.tests }}/**" || exit_code=$? + [[ $(( ( RANDOM % 3 ) + 1 )) == "3" ]] && exit 53 + # Check the exit code if [ -z "$exit_code" ]; then echo "Cypress Test task succeeded!" @@ -112,7 +114,7 @@ jobs: done - name: 'Upload Cypress Recordings to Github' - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 if: failure() with: name: cypress-recordings-run-${{ matrix.tests }} @@ -127,10 +129,10 @@ jobs: runs-on: ubuntu-latest needs: cypress-tests environment: ${{ inputs.environment }} - if: ${{ failure() }} && github.ref == 'refs/heads/main' }} + if: ${{ failure() }} #&& github.ref == 'refs/heads/main' }} steps: - name: Download all artifacts - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: path: artifacts - run: | diff --git a/.github/workflows/run-api-test.yml b/.github/workflows/run-api-test.yml index ea381ab612..d895608a98 100644 --- a/.github/workflows/run-api-test.yml +++ b/.github/workflows/run-api-test.yml @@ -68,8 +68,6 @@ jobs: env: SDF_API_URL: ${{ vars.SDF_API_URL }} AUTH_API_URL: ${{ vars.AUTH_API_URL }} - outputs: - last_exit_code: ${{ steps.capture-exit-code.outputs.last_exit_code }} steps: - name: Checkout code uses: actions/checkout@v4 @@ -113,6 +111,7 @@ jobs: # Check the exit code if [ -z "$exit_code" ]; then echo "Deno task succeeded [ or the orchestration failed for a totally non-valid reason ]!" + [[ $(( ( RANDOM % 3 ) + 1 )) == "3" ]] && exit_code=53 break fi @@ -138,7 +137,7 @@ jobs: - name: Upload artifacts if: ${{ failure() && env.last_exit_code == '53' }} - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: ${{ matrix.tests.name }} path: artifacts/${{ matrix.tests.name }} @@ -147,10 +146,10 @@ jobs: runs-on: ubuntu-latest needs: api-test environment: ${{ inputs.environment }} - if: ${{ failure() }} && github.ref == 'refs/heads/main' }} + if: ${{ failure() }} #&& github.ref == 'refs/heads/main' }} steps: - name: Download all artifacts - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: path: artifacts - run: |