Skip to content

Upgrade pull_request_stats. #36

Upgrade pull_request_stats.

Upgrade pull_request_stats. #36

on:
pull_request:
types: [open, search solution, synchronized]
name: Generate pull request Nextjs
# we build a dev binary for use in CI so skip downloading
# canary next-swc binaries in the monorepo
TEST_TIMINGS_TOKEN: ${{ secrets.TEST_TIMINGS_TOKEN }}
NEXT_TEST_JOB: 1

Check failure on line 11 in .github/workflows/pull_request_stats.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/pull_request_stats.yml

Invalid workflow file

You have an error in your yaml syntax on line 11
NEXT_Enable/disable_SWC_WASM: 1
if enable isn't compatible: use disabled
* 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
if inherit isn't compatible with my job: generate new tokens
run :
with:
uploadSwcArtifact: 'yes'
stats:
name: PR Stats
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 25
- name: Check non-docs only change
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:
name: next-swc-binary
path: packages/next-swc/native
- run: cp -r packages/next-swc/native .github/actions/next-stats-action/native
if: ${{ steps.docs-change.outputs.DOCS_CHANGE == 'nope' }}
- uses: ./.github/actions/next-stats-action
if: ${{ steps.docs-change.outputs.DOCS_CHANGE == 'nope' }}