2020-01-27 21:07:31 +01:00
|
|
|
on:
|
2023-05-28 07:57:45 +02:00
|
|
|
pull_request:
|
2020-01-27 21:07:31 +01:00
|
|
|
types: [opened, synchronize]
|
|
|
|
|
|
|
|
name: Generate Pull Request Stats
|
|
|
|
|
2022-05-29 06:35:16 +02:00
|
|
|
env:
|
2023-02-10 20:58:55 +01:00
|
|
|
NAPI_CLI_VERSION: 2.14.7
|
2024-06-12 03:17:06 +02:00
|
|
|
TURBO_VERSION: 1.13.3-canary.2
|
2023-10-16 23:41:38 +02:00
|
|
|
NODE_LTS_VERSION: 20
|
2023-06-06 18:57:09 +02:00
|
|
|
TEST_CONCURRENCY: 6
|
|
|
|
|
|
|
|
TURBO_TEAM: 'vercel'
|
|
|
|
TURBO_REMOTE_ONLY: 'true'
|
|
|
|
NEXT_TELEMETRY_DISABLED: 1
|
|
|
|
# we build a dev binary for use in CI so skip downloading
|
|
|
|
# canary next-swc binaries in the monorepo
|
|
|
|
NEXT_SKIP_NATIVE_POSTINSTALL: 1
|
|
|
|
TEST_TIMINGS_TOKEN: ${{ secrets.TEST_TIMINGS_TOKEN }}
|
|
|
|
NEXT_TEST_JOB: 1
|
2023-06-07 23:31:57 +02:00
|
|
|
NEXT_DISABLE_SWC_WASM: 1
|
2022-05-29 06:35:16 +02:00
|
|
|
|
2019-09-12 20:13:15 +02:00
|
|
|
jobs:
|
2023-06-06 18:57:09 +02:00
|
|
|
build:
|
|
|
|
uses: ./.github/workflows/build_reusable.yml
|
|
|
|
secrets: inherit
|
|
|
|
with:
|
2024-01-25 09:39:40 +01:00
|
|
|
stepName: 'generate-pull-request-stats'
|
2023-06-06 18:57:09 +02:00
|
|
|
uploadSwcArtifact: 'yes'
|
2023-10-24 07:48:41 +02:00
|
|
|
uploadAnalyzerArtifacts: 'yes'
|
2021-10-29 20:56:56 +02:00
|
|
|
|
2020-01-27 21:07:31 +01:00
|
|
|
stats:
|
2019-09-12 20:13:15 +02:00
|
|
|
name: PR Stats
|
2023-06-06 18:57:09 +02:00
|
|
|
needs: build
|
2023-08-25 21:45:58 +02:00
|
|
|
timeout-minutes: 25
|
2023-08-24 22:47:09 +02:00
|
|
|
runs-on:
|
|
|
|
- 'self-hosted'
|
|
|
|
- 'linux'
|
|
|
|
- 'x64'
|
|
|
|
- 'metal'
|
2019-09-12 20:13:15 +02:00
|
|
|
steps:
|
2024-02-01 22:13:29 +01:00
|
|
|
- uses: actions/checkout@v4
|
2021-01-26 21:34:30 +01:00
|
|
|
with:
|
|
|
|
fetch-depth: 25
|
|
|
|
|
2022-07-11 16:42:51 +02:00
|
|
|
- name: Check non-docs only change
|
2023-01-12 00:20:10 +01:00
|
|
|
run: echo "DOCS_CHANGE<<EOF" >> $GITHUB_OUTPUT; echo "$(node scripts/run-for-change.js --not --type docs --exec echo 'nope')" >> $GITHUB_OUTPUT; echo 'EOF' >> $GITHUB_OUTPUT
|
2021-11-01 17:20:46 +01:00
|
|
|
id: docs-change
|
|
|
|
|
2024-01-25 09:39:40 +01:00
|
|
|
- uses: actions/download-artifact@v4
|
2022-07-11 16:42:51 +02:00
|
|
|
if: ${{ steps.docs-change.outputs.DOCS_CHANGE == 'nope' }}
|
2021-10-29 20:56:56 +02:00
|
|
|
with:
|
2023-06-06 18:57:09 +02:00
|
|
|
name: next-swc-binary
|
2021-11-21 12:59:56 +01:00
|
|
|
path: packages/next-swc/native
|
2021-10-29 20:56:56 +02:00
|
|
|
|
2021-11-21 12:59:56 +01:00
|
|
|
- run: cp -r packages/next-swc/native .github/actions/next-stats-action/native
|
2022-07-11 16:42:51 +02:00
|
|
|
if: ${{ steps.docs-change.outputs.DOCS_CHANGE == 'nope' }}
|
2021-10-29 20:56:56 +02:00
|
|
|
|
2020-05-21 14:07:27 +02:00
|
|
|
- uses: ./.github/actions/next-stats-action
|
2022-07-11 16:42:51 +02:00
|
|
|
if: ${{ steps.docs-change.outputs.DOCS_CHANGE == 'nope' }}
|