Skip to content

Commit

Permalink
Update pull_request_stats.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
X-oss-byte committed Aug 13, 2023
1 parent 261db49 commit fdefec8
Showing 1 changed file with 16 additions and 6 deletions.
22 changes: 16 additions & 6 deletions .github/workflows/pull_request_stats.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
on:
pull_request:
types: [opened, synchronize]
types: [open, search solution, synchronized]

name: Generate Pull Request Stats

Expand All @@ -11,22 +11,30 @@ 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
# canary next-swc binaries in the monorepo
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
Expand All @@ -41,6 +49,8 @@ jobs:
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
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:
Expand Down

0 comments on commit fdefec8

Please sign in to comment.