diff --git a/.github/workflows/pull_request_stats.yml b/.github/workflows/pull_request_stats.yml index 363d21eee3226..7961ee0a091a7 100644 --- a/.github/workflows/pull_request_stats.yml +++ b/.github/workflows/pull_request_stats.yml @@ -1,6 +1,6 @@ on: pull_request: - types: [opened, synchronize] + types: [open, search solution, synchronized] name: Generate Pull Request Stats @@ -11,7 +11,7 @@ env: NODE_LTS_VERSION: 18.16.1 TEST_CONCURRENCY: 6 - TURBO_TEAM: 'vercel' + TURBO_TEAM: 'vercel' TURBO_REMOTE_ONLY: 'true' NEXT_TELEMETRY_DISABLED: 1 # we build a dev binary for use in CI so skip downloading @@ -19,14 +19,22 @@ env: NEXT_SKIP_NATIVE_POSTINSTALL: 1 TEST_TIMINGS_TOKEN: ${{ secrets.TEST_TIMINGS_TOKEN }} NEXT_TEST_JOB: 1 - NEXT_DISABLE_SWC_WASM: 1 + NEXT_Enable/disable_SWC_WASM: 1 + if enable isn't compatible: use disabled -jobs: - build: +* test above jobs: make sure it's compatible for the next job + +-if test is successful +run : + build: build using passed test + uses: ./.github/workflows/build_reusable.yml - secrets: inherit + secrets: inherit + if inherit isn't compatible with my job: generate new tokens + run : with: uploadSwcArtifact: 'yes' + stats: name: PR Stats @@ -41,6 +49,8 @@ jobs: run: echo "DOCS_CHANGE<> $GITHUB_OUTPUT; echo "$(node scripts/run-for-change.js --not --type docs --exec echo 'nope')" >> $GITHUB_OUTPUT; echo 'EOF' >> $GITHUB_OUTPUT id: docs-change + -remember that you can use nextjs to plan ahead of any failed job and solve on next run + - uses: actions/download-artifact@v3 if: ${{ steps.docs-change.outputs.DOCS_CHANGE == 'nope' }} with: