diff --git a/.github/workflows/ember-test-audit.yml b/.github/workflows/ember-test-audit.yml index 974b1c65e00..d0a7ebdf975 100644 --- a/.github/workflows/ember-test-audit.yml +++ b/.github/workflows/ember-test-audit.yml @@ -25,25 +25,28 @@ jobs: node-version: '18' - run: yarn --frozen-lockfile - run: mkdir -p /tmp/test-reports - # Debug steps - - run: yarn --version - - run: yarn list --pattern "ember-test-audit" || true - - run: yarn list --pattern "@ember/test-helpers" || true + # # Debug steps + # - run: yarn --version + # - run: yarn list --pattern "ember-test-audit" || true + # - run: yarn list --pattern "@ember/test-helpers" || true # Try installing explicitly before running - run: yarn add ember-test-audit@0.4.0 --dev + # - run: | + # set -x + # echo "=== Starting Tests ===" + # export CHROME_FLAGS="--headless --disable-gpu --no-sandbox --disable-dev-shm-usage --memory-pressure-off --js-flags=\"--max_old_space_size=4096\"" + # export TESTEM_LOG_FILE='/tmp/testem.log' + # timeout 900 yarn ember-test-audit 1 --json --output ../base-audit.json || { + # echo "=== Process timed out or failed ===" + # echo "=== Last Testem Logs ===" + # cat /tmp/testem.log || true + # echo "=== Chrome Process Check ===" + # ps aux | grep chrome || true + # exit 1 + # } - run: | - set -x - echo "=== Starting Tests ===" export CHROME_FLAGS="--headless --disable-gpu --no-sandbox --disable-dev-shm-usage --memory-pressure-off --js-flags=\"--max_old_space_size=4096\"" - export TESTEM_LOG_FILE='/tmp/testem.log' - timeout 900 yarn ember-test-audit 1 --json --output ../base-audit.json || { - echo "=== Process timed out or failed ===" - echo "=== Last Testem Logs ===" - cat /tmp/testem.log || true - echo "=== Chrome Process Check ===" - ps aux | grep chrome || true - exit 1 - } + yarn ember-test-audit 1 --json --output ../base-audit.json - name: Upload result uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3 with: @@ -61,7 +64,10 @@ jobs: - run: yarn --frozen-lockfile - run: mkdir -p /tmp/test-reports - run: yarn add ember-test-audit@0.4.0 --dev - - run: npx ember-test-audit 1 --json --output ../pr-audit.json + # - run: npx ember-test-audit 1 --json --output ../pr-audit.json + - run: | + export CHROME_FLAGS="--headless --disable-gpu --no-sandbox --disable-dev-shm-usage --memory-pressure-off --js-flags=\"--max_old_space_size=4096\"" + yarn ember-test-audit 1 --json --output ../pr-audit.json - name: Upload result uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3 with: