Add new build and test workflow (#50436)
This adds new `build and test` and `build and deploy` workflows in favor of the existing massive `build, test, and deploy` workflow. Since the new workflows will use `pull_request_target` this waits to remove the existing workflow until the new one is tested. While testing this new workflow flakey behavior in tests have also been addressed. Along with the new workflow we will also be leveraging new runners which allow us to run tests against the production binary of `next-swc` so this avoids slight differences in tests we've seen due to running against the dev binary. Furthermore we will have a new flow for allowing workflow runs on PRs from external forks which will either require a comment be checking a box approving the run after each change or a label added by the team. The new flow also no longer relies on `actions/cache` or similar which have proven to be pretty unreliable. Tests runs with the new workflow can be seen here https://github.com/vercel/next.js/actions/runs/5100673508/jobs/9169416949
Showing
This diff is collapsed.
This diff is collapsed.
| ... | ... | @@ -9,7 +9,7 @@ |
| "new-error": "plop error", | ||
| "new-test": "plop test", | ||
| "clean": "lerna clean -y && lerna bootstrap && lerna run clean && lerna exec 'node ../../scripts/rm.mjs dist'", | ||
| "build": "turbo run build", | ||
| "build": "turbo run build --summarize true", | ||
| "lerna": "lerna", | ||
| "dev": "turbo run dev --parallel", | ||
| "test-types": "tsc", | ||
| ... | ... | @@ -29,13 +29,16 @@ |
| "lint-typescript": "turbo run typescript", | ||
| "lint-eslint": "eslint . --ext js,jsx,ts,tsx --max-warnings=0 --config .eslintrc.json --no-eslintrc", | ||
| "lint-no-typescript": "run-p prettier-check lint-eslint lint-language", | ||
| "types-and-precompiled": "run-p lint-typescript check-precompiled", | ||
| "lint": "run-p test-types lint-typescript prettier-check lint-eslint lint-language", | ||
| "lint-fix": "pnpm prettier-fix && eslint . --ext js,jsx,ts,tsx --fix --max-warnings=0 --config .eslintrc.json --no-eslintrc", | ||
| "lint-language": "alex .", | ||
| "prettier-check": "prettier --check .", | ||
| "check-examples": "./scripts/check-examples.sh", | ||
| "get-test-timings": "node run-tests.js --timings --write-timings -g 1/1", | ||
| "prettier-fix": "prettier --write .", | ||
| "types": "lerna run types --stream", | ||
| "typescript": "turbo run typescript", | ||
| "check-precompiled": "./scripts/check-pre-compiled.sh", | ||
| "prepublishOnly": "turbo run build", | ||
| "release-canary": "git checkout canary && git pull && lerna version prerelease --preid canary --force-publish && release --pre --skip-questions --show-url", | ||
| "release-stable": "lerna version --force-publish", | ||
| ... | ... | @@ -230,7 +233,7 @@ |
| "tree-kill": "1.2.2", | ||
| "ts-node": "10.9.1", | ||
| "tsec": "0.2.1", | ||
| "turbo": "1.6.3", | ||
| "turbo": "1.9.6", | ||
| "typescript": "4.8.2", | ||
| "unfetch": "4.2.0", | ||
| "wait-port": "0.2.2", | ||
| ... | ... |
Please
register
or
sign in
to comment