Skip to content

refactor: rename example to template #318

refactor: rename example to template

refactor: rename example to template #318

Triggered via pull request December 2, 2024 09:04
@tmkxtmkx
synchronize #102
chore/rename
Status Failure
Total duration 4m 5s
Artifacts

ci.yml

on: pull_request
Matrix: Test
Fit to window
Zoom out
Zoom in

Annotations

7 errors
tests/index.spec.ts > Modern.js > Default: tests/env-vars/tests/index.spec.ts#L29
Error: Command failed with exit code 1: pnpm modern build Modern.js Framework v2.61.0 info Starting production build... info Build progress: 10% (web) info Build progress: 65% (web) info Build progress: 75% (web) info Build progress: 85% (web) info Build progress: 99% (web) error Compile error: Failed to compile, check the errors for troubleshooting. File: /home/runner/work/webx-kit/webx-kit/node_modules/.pnpm/@webx-kit+core-plugin@file+packages+core-plugin+webx-kit-core-plugin-0.1.0.tgz_@rsbuild+core@1.1.0_tailwindcss@3.4.14/node_modules/@webx-kit/core-plugin/dist/build-http/index.js?request=https%3A%2F%2Fhttpbin.org%2Fget%3Fid%3D%24WEBX_PUBLIC_CONFIG_ID:1:1 Module parse failed: 'import' and 'export' may appear only with 'sourceType: module' (1:0) File was processed with these loaders: * ../../node_modules/.pnpm/@webx-kit+core-plugin@file+packages+core-plugin+webx-kit-core-plugin-0.1.0.tgz_@rsbuild+core@1.1.0_tailwindcss@3.4.14/node_modules/@webx-kit/core-plugin/dist/build-http/build-http-loader.js You may need an additional loader to handle the result of these loaders. > export default JSON.parse("{\"args\":{\"id\":\"default\"},\"headers\":{\"Accept\":\"*/*\",\"Accept-Encoding\":\"br, gzip, deflate\",\"Accept-Language\":\"*\",\"Host\":\"httpbin.org\",\"Sec-Fetch-Mode\":\"cors\",\"User-Agent\":\"WebX Kit\",\"X-Amzn-Trace-Id\":\"Root=1-674d78cd-3eaaa93a5bafa35623ed2d4b\"},\"origin\":\"4.227.115.8\",\"url\":\"https://httpbin.org/get?id=default\"}") error Built failed in 3.02 s (web) error Error: Webpack build failed! at /home/runner/work/webx-kit/webx-kit/node_modules/.pnpm/@rsbuild+webpack@1.1.0_@rsbuild+core@1.1.0_esbuild@0.17.19/node_modules/@rsbuild/webpack/dist/index.cjs:912:73 at finalCallback (/home/runner/work/webx-kit/webx-kit/node_modules/.pnpm/webpack@5.96.1_esbuild@0.17.19/node_modules/webpack/lib/Compiler.js:500:32) at /home/runner/work/webx-kit/webx-kit/node_modules/.pnpm/webpack@5.96.1_esbuild@0.17.19/node_modules/webpack/lib/Compiler.js:524:13 at eval (eval at create (/home/runner/work/webx-kit/webx-kit/node_modules/.pnpm/tapable@2.2.1/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:68:1) ❯ makeError ../../node_modules/.pnpm/@modern-js+utils@2.61.0/node_modules/@modern-js/utils/dist/compiled/execa/index.js:1:8677 ❯ handlePromise ../../node_modules/.pnpm/@modern-js+utils@2.61.0/node_modules/@modern-js/utils/dist/compiled/execa/index.js:1:5315 ❯ tests/index.spec.ts:29:5 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { shortMessage: 'Command failed with exit code 1: pnpm modern build', command: 'pnpm modern build', escapedCommand: 'pnpm modern build', exitCode: 1, signal: undefined, signalDescription: undefined, stdout: '\u001b[1m\u001b[38;2;189;255;243m \u001b[39m\u001b[38;2;189;255;243m \u001b[39m\u001b[38;2;184;253;239mM\u001b[39m\u001b[38;2;180;250;236mo\u001b[39m\u001b[38;2;175;248;232md\u001b[39m\u001b[38;2;171;245;229me\u001b[39m\u001b[38;2;166;243;225mr\u001b[39m\u001b[38;2;161;240;222mn\u001b[39m\u001b[38;2;157;238;218m.\u001b[39m\u001b[38;2;152;235;215mj\u001b[39m\u001b[38;2;148;233;211ms\u001b[39m\u001b[38;2;148;233;211m \u001b[39m\u001b[38;2;143;231;207mF\u001b[39m\u001b[38;2;138;228;204mr\u001b[39m\u001b[38;2;134;226;200ma\u001b[39m\u001b[38;2;129;223;197mm\u001b[39m\u001b[38;2;125;221;193me\u001b[39m\u001b[38;2;120;218;190mw\u001b[39m\u001b[38;2;115;216;186mo\u001b[39m\u001b[38;2;111;214;182mr\u001b[39m\u001b[38;2;106;211;179mk\u001b[39m\u001b[38;2;106;211;179m \u001b[39m\u001b[38;2;102;209;175mv\u001b[39m\u001b[38;2;97;206;172m2\u001b[39m\u001b[38;2;92;204;168m.\u001b[39m\u001b[38;2;88;201;165m6\u001b[39m\u001b[38;2;83;199;161m1\u001b[39m\u001b[38;2;79;196;158m.\u001b[39m\u001b[38;2;74;194;154m0\u001b[39m\u001b[38;2;74;194;154m\n\u001b[39m\u001b[22m\n\u001b[1m\u001b[36minfo \u001b[39m\u001b[22m Starting production build...\n\u001b[1m\u001b[36minfo \u001b[39m\u001b[22m Build progress: 10% \u001b[90m(web)\u001b[39m\n\n\u001b[2K\u001b[1A\u001b[2K\u001b[G\u001b[1m\u001b[36minfo \u001b[39m\u001b[22m Build progress: 65%
tests/index.spec.ts > Modern.js > Custom preset: tests/env-vars/tests/index.spec.ts#L39
Error: Command failed with exit code 1: pnpm modern build Modern.js Framework v2.61.0 info Starting production build... info Build progress: 10% (web) info Build progress: 65% (web) info Build progress: 75% (web) info Build progress: 85% (web) info Build progress: 99% (web) error Compile error: Failed to compile, check the errors for troubleshooting. File: /home/runner/work/webx-kit/webx-kit/node_modules/.pnpm/@webx-kit+core-plugin@file+packages+core-plugin+webx-kit-core-plugin-0.1.0.tgz_@rsbuild+core@1.1.0_tailwindcss@3.4.14/node_modules/@webx-kit/core-plugin/dist/build-http/index.js?request=https%3A%2F%2Fhttpbin.org%2Fget%3Fid%3D%24WEBX_PUBLIC_CONFIG_ID:1:1 Module parse failed: 'import' and 'export' may appear only with 'sourceType: module' (1:0) File was processed with these loaders: * ../../node_modules/.pnpm/@webx-kit+core-plugin@file+packages+core-plugin+webx-kit-core-plugin-0.1.0.tgz_@rsbuild+core@1.1.0_tailwindcss@3.4.14/node_modules/@webx-kit/core-plugin/dist/build-http/build-http-loader.js You may need an additional loader to handle the result of these loaders. > export default JSON.parse("{\"args\":{\"id\":\"demo\"},\"headers\":{\"Accept\":\"*/*\",\"Accept-Encoding\":\"br, gzip, deflate\",\"Accept-Language\":\"*\",\"Host\":\"httpbin.org\",\"Sec-Fetch-Mode\":\"cors\",\"User-Agent\":\"WebX Kit\",\"X-Amzn-Trace-Id\":\"Root=1-674d78cd-64ca941b238e67a95522befe\"},\"origin\":\"4.227.115.8\",\"url\":\"https://httpbin.org/get?id=demo\"}") error Built failed in 2.72 s (web) error Error: Webpack build failed! at /home/runner/work/webx-kit/webx-kit/node_modules/.pnpm/@rsbuild+webpack@1.1.0_@rsbuild+core@1.1.0_esbuild@0.17.19/node_modules/@rsbuild/webpack/dist/index.cjs:912:73 at finalCallback (/home/runner/work/webx-kit/webx-kit/node_modules/.pnpm/webpack@5.96.1_esbuild@0.17.19/node_modules/webpack/lib/Compiler.js:500:32) at /home/runner/work/webx-kit/webx-kit/node_modules/.pnpm/webpack@5.96.1_esbuild@0.17.19/node_modules/webpack/lib/Compiler.js:524:13 at eval (eval at create (/home/runner/work/webx-kit/webx-kit/node_modules/.pnpm/tapable@2.2.1/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:68:1) ❯ makeError ../../node_modules/.pnpm/@modern-js+utils@2.61.0/node_modules/@modern-js/utils/dist/compiled/execa/index.js:1:8677 ❯ handlePromise ../../node_modules/.pnpm/@modern-js+utils@2.61.0/node_modules/@modern-js/utils/dist/compiled/execa/index.js:1:5315 ❯ tests/index.spec.ts:39:5 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { shortMessage: 'Command failed with exit code 1: pnpm modern build', command: 'pnpm modern build', escapedCommand: 'pnpm modern build', exitCode: 1, signal: undefined, signalDescription: undefined, stdout: '\u001b[1m\u001b[38;2;189;255;243m \u001b[39m\u001b[38;2;189;255;243m \u001b[39m\u001b[38;2;184;253;239mM\u001b[39m\u001b[38;2;180;250;236mo\u001b[39m\u001b[38;2;175;248;232md\u001b[39m\u001b[38;2;171;245;229me\u001b[39m\u001b[38;2;166;243;225mr\u001b[39m\u001b[38;2;161;240;222mn\u001b[39m\u001b[38;2;157;238;218m.\u001b[39m\u001b[38;2;152;235;215mj\u001b[39m\u001b[38;2;148;233;211ms\u001b[39m\u001b[38;2;148;233;211m \u001b[39m\u001b[38;2;143;231;207mF\u001b[39m\u001b[38;2;138;228;204mr\u001b[39m\u001b[38;2;134;226;200ma\u001b[39m\u001b[38;2;129;223;197mm\u001b[39m\u001b[38;2;125;221;193me\u001b[39m\u001b[38;2;120;218;190mw\u001b[39m\u001b[38;2;115;216;186mo\u001b[39m\u001b[38;2;111;214;182mr\u001b[39m\u001b[38;2;106;211;179mk\u001b[39m\u001b[38;2;106;211;179m \u001b[39m\u001b[38;2;102;209;175mv\u001b[39m\u001b[38;2;97;206;172m2\u001b[39m\u001b[38;2;92;204;168m.\u001b[39m\u001b[38;2;88;201;165m6\u001b[39m\u001b[38;2;83;199;161m1\u001b[39m\u001b[38;2;79;196;158m.\u001b[39m\u001b[38;2;74;194;154m0\u001b[39m\u001b[38;2;74;194;154m\n\u001b[39m\u001b[22m\n\u001b[1m\u001b[36minfo \u001b[39m\u001b[22m Starting production build...\n\u001b[1m\u001b[36minfo \u001b[39m\u001b[22m Build progress: 10% \u001b[90m(web)\u001b[39m\n\n\u001b[2K\u001b[1A\u001b[2K\u001b[G\u001b[1m\u001b[36minfo \u001b[39m\u001b[22m Build progress: 65% \u001
tests/index.spec.ts > Rsbuild > Default: tests/env-vars/tests/index.spec.ts#L62
Error: Command failed with exit code 1: pnpm rsbuild build Rsbuild v1.1.0 error Compile error: Failed to compile, check the errors for troubleshooting. File: /home/runner/work/webx-kit/webx-kit/node_modules/.pnpm/@webx-kit+core-plugin@file+packages+core-plugin+webx-kit-core-plugin-0.1.0.tgz_@rsbuild+core@1.1.0_tailwindcss@3.4.14/node_modules/@webx-kit/core-plugin/dist/build-http/index.js?request=https%3A%2F%2Fhttpbin.org%2Fget%3Fid%3D%24WEBX_PUBLIC_CONFIG_ID:1:1 × Module parse failed: ╰─▶ × JavaScript parsing error: 'import', and 'export' cannot be used outside of module code ╭──── 1 │ export default JSON.parse("{\"args\":{\"id\":\"default\"},\"headers\":{\"Accept\":\"*/*\",\"Accept-Encoding\":\"br, gzip, deflate\",\"Accept-Language\":\"*\",\"Host\":\"httpbin.org\",\"Sec-Fetch-Mode\":\"cors\",\"User-Agent\":\"WebX Kit\",\"X-Amzn-Trace-Id\":\"Root=1-674d78d2-0457dd394d09ee9d3aea0c5f\"},\"origin\":\"4.227.115.8\",\"url\":\"https://httpbin.org/get?id=default\"}") · ────── ╰──── help: File was processed with these loaders: * commonjs|/home/runner/work/webx-kit/webx-kit/node_modules/.pnpm/@webx-kit+core-plugin@file+packages+core-plugin+webx-kit-core-plugin-0.1.0.tgz_@rsbuild+core@1.1.0_tailwindcss@3.4.14/node_modules/@webx-kit/core-plugin/dist/build-http/build-http-loader.js You may need an additional loader to handle the result of these loaders. error Failed to build. error Rspack build failed! at file:///home/runner/work/webx-kit/webx-kit/node_modules/.pnpm/@rsbuild+core@1.1.0/node_modules/@rsbuild/core/dist/index.js:9399:20 at finalCallback (/home/runner/work/webx-kit/webx-kit/node_modules/.pnpm/@rspack+core@1.1.1_@swc+helpers@0.5.15/node_modules/@rspack/core/dist/index.js:13322:11) at /home/runner/work/webx-kit/webx-kit/node_modules/.pnpm/@rspack+core@1.1.1_@swc+helpers@0.5.15/node_modules/@rspack/core/dist/index.js:13345:22 at done (/home/runner/work/webx-kit/webx-kit/node_modules/.pnpm/@rspack+lite-tapable@1.0.1/node_modules/@rspack/lite-tapable/dist/index.js:473:13) at promise.then.index (/home/runner/work/webx-kit/webx-kit/node_modules/.pnpm/@rspack+lite-tapable@1.0.1/node_modules/@rspack/lite-tapable/dist/index.js:493:25) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) ❯ finalCallback ../../node_modules/.pnpm/@rspack+core@1.1.1_@swc+helpers@0.5.15/node_modules/@rspack/core/dist/index.js:13322:11 ❯ ../../node_modules/.pnpm/@rspack+core@1.1.1_@swc+helpers@0.5.15/node_modules/@rspack/core/dist/index.js:13345:22 ❯ done ../../node_modules/.pnpm/@rspack+lite-tapable@1.0.1/node_modules/@rspack/lite-tapable/dist/index.js:473:13 ❯ promise.then.index ../../node_modules/.pnpm/@rspack+lite-tapable@1.0.1/node_modules/@rspack/lite-tapable/dist/index.js:493:25 ❯ makeError ../../node_modules/.pnpm/@modern-js+utils@2.61.0/node_modules/@modern-js/utils/dist/compiled/execa/index.js:1:8677 ❯ handlePromise ../../node_modules/.pnpm/@modern-js+utils@2.61.0/node_modules/@modern-js/utils/dist/compiled/execa/index.js:1:5315 ❯ tests/index.spec.ts:62:5 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { shortMessage: 'Command failed with exit code 1: pnpm rsbuild build', command: 'pnpm rsbuild build', escapedCommand: 'pnpm rsbuild build', exitCode: 1, signal: undefined, signalDescription: undefined, stdout: '\u001b[1m\u001b[38;2;189;255;243m \u001b[39m\u001b[38;2;189;255;243m \u001b[39m\u001b[38;2;180;250;236mR\u001b[39m\u001b[38;2;171;246;229ms\u001b[39m\u001b[38;2;162;241;222mb\u001b[39m\u001b[38;2;154;236;216mu\u001b[39m\u001b[38;2;145;232;209mi\u001b[39m\u001b[38;2;136;227;202ml\u001b[39m\u001b[38;2;127;222;195md\u001b[39m\u001b[38;2;127;222;195m \u001b[39m\u001b[38;2;118;217;188mv\u001b[39m\u001b[38;2;109;213;181m1\u001b[39m\u001b[38;2;101;208;175m.\u001b[39m\u001b[38;2;92;203;168m1\u001b[39m\u001b[38;2;83;199;161m.\u001b[39m\u001b[38;2;74;194;154m0\u001b[39m\u001b[38;2;74;194;154m\n\u001b[39m\u001b[22m\n\u001b[1m\u001b[31merror \u001b[39m\u001b[22m \u001b[1m\u001b[31mCompile error: \u001b[39m\
tests/index.spec.ts > Rsbuild > Custom preset: tests/env-vars/tests/index.spec.ts#L72
Error: Command failed with exit code 1: pnpm rsbuild build --env-mode demo Rsbuild v1.1.0 error Compile error: Failed to compile, check the errors for troubleshooting. File: /home/runner/work/webx-kit/webx-kit/node_modules/.pnpm/@webx-kit+core-plugin@file+packages+core-plugin+webx-kit-core-plugin-0.1.0.tgz_@rsbuild+core@1.1.0_tailwindcss@3.4.14/node_modules/@webx-kit/core-plugin/dist/build-http/index.js?request=https%3A%2F%2Fhttpbin.org%2Fget%3Fid%3D%24WEBX_PUBLIC_CONFIG_ID:1:1 × Module parse failed: ╰─▶ × JavaScript parsing error: 'import', and 'export' cannot be used outside of module code ╭──── 1 │ export default JSON.parse("{\"args\":{\"id\":\"demo\"},\"headers\":{\"Accept\":\"*/*\",\"Accept-Encoding\":\"br, gzip, deflate\",\"Accept-Language\":\"*\",\"Host\":\"httpbin.org\",\"Sec-Fetch-Mode\":\"cors\",\"User-Agent\":\"WebX Kit\",\"X-Amzn-Trace-Id\":\"Root=1-674d78d3-4f0e2bd75b6876f17e1de7ec\"},\"origin\":\"4.227.115.8\",\"url\":\"https://httpbin.org/get?id=demo\"}") · ────── ╰──── help: File was processed with these loaders: * commonjs|/home/runner/work/webx-kit/webx-kit/node_modules/.pnpm/@webx-kit+core-plugin@file+packages+core-plugin+webx-kit-core-plugin-0.1.0.tgz_@rsbuild+core@1.1.0_tailwindcss@3.4.14/node_modules/@webx-kit/core-plugin/dist/build-http/build-http-loader.js You may need an additional loader to handle the result of these loaders. error Failed to build. error Rspack build failed! at file:///home/runner/work/webx-kit/webx-kit/node_modules/.pnpm/@rsbuild+core@1.1.0/node_modules/@rsbuild/core/dist/index.js:9399:20 at finalCallback (/home/runner/work/webx-kit/webx-kit/node_modules/.pnpm/@rspack+core@1.1.1_@swc+helpers@0.5.15/node_modules/@rspack/core/dist/index.js:13322:11) at /home/runner/work/webx-kit/webx-kit/node_modules/.pnpm/@rspack+core@1.1.1_@swc+helpers@0.5.15/node_modules/@rspack/core/dist/index.js:13345:22 at done (/home/runner/work/webx-kit/webx-kit/node_modules/.pnpm/@rspack+lite-tapable@1.0.1/node_modules/@rspack/lite-tapable/dist/index.js:473:13) at promise.then.index (/home/runner/work/webx-kit/webx-kit/node_modules/.pnpm/@rspack+lite-tapable@1.0.1/node_modules/@rspack/lite-tapable/dist/index.js:493:25) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) ❯ finalCallback ../../node_modules/.pnpm/@rspack+core@1.1.1_@swc+helpers@0.5.15/node_modules/@rspack/core/dist/index.js:13322:11 ❯ ../../node_modules/.pnpm/@rspack+core@1.1.1_@swc+helpers@0.5.15/node_modules/@rspack/core/dist/index.js:13345:22 ❯ done ../../node_modules/.pnpm/@rspack+lite-tapable@1.0.1/node_modules/@rspack/lite-tapable/dist/index.js:473:13 ❯ promise.then.index ../../node_modules/.pnpm/@rspack+lite-tapable@1.0.1/node_modules/@rspack/lite-tapable/dist/index.js:493:25 ❯ makeError ../../node_modules/.pnpm/@modern-js+utils@2.61.0/node_modules/@modern-js/utils/dist/compiled/execa/index.js:1:8677 ❯ handlePromise ../../node_modules/.pnpm/@modern-js+utils@2.61.0/node_modules/@modern-js/utils/dist/compiled/execa/index.js:1:5315 ❯ tests/index.spec.ts:72:5 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { shortMessage: 'Command failed with exit code 1: pnpm rsbuild build --env-mode demo', command: 'pnpm rsbuild build --env-mode demo', escapedCommand: 'pnpm rsbuild build --env-mode demo', exitCode: 1, signal: undefined, signalDescription: undefined, stdout: '\u001b[1m\u001b[38;2;189;255;243m \u001b[39m\u001b[38;2;189;255;243m \u001b[39m\u001b[38;2;180;250;236mR\u001b[39m\u001b[38;2;171;246;229ms\u001b[39m\u001b[38;2;162;241;222mb\u001b[39m\u001b[38;2;154;236;216mu\u001b[39m\u001b[38;2;145;232;209mi\u001b[39m\u001b[38;2;136;227;202ml\u001b[39m\u001b[38;2;127;222;195md\u001b[39m\u001b[38;2;127;222;195m \u001b[39m\u001b[38;2;118;217;188mv\u001b[39m\u001b[38;2;109;213;181m1\u001b[39m\u001b[38;2;101;208;175m.\u001b[39m\u001b[38;2;92;203;168m1\u001b[39m\u001b[38;2;83;199;161m.\u001b[39m\u001b[38;2;74;194;154m0\u001b[39m\u001b[38;2;74;194;154m\n\u001b[39m\u001b[22m\n\u001b[1m\u001b[31merror \u001b[3
Test (ubuntu-latest, 20.x)
Process completed with exit code 1.
Test (windows-latest, 20.x)
The job was canceled because "ubuntu-latest_20_x" failed.
Test (windows-latest, 20.x)
The operation was canceled.